Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 03b0d03cceae2c081da42c1aa7969b9a89782956 https://github.com/WebKit/WebKit/commit/03b0d03cceae2c081da42c1aa7969b9a89782956 Author: Sihui Liu <sihui_...@apple.com> Date: 2022-12-19 (Mon, 19 Dec 2022)
Changed paths: M Source/WebCore/platform/audio/cocoa/CARingBuffer.cpp M Tools/TestWebKitAPI/Tests/WebCore/CARingBuffer.cpp Log Message: ----------- Cherry-pick 252432.777@safari-7614-branch (907f9f00adcc). rdar://100915554 CARingBuffer::fetch should not increase buffer data byte size of AudioBufferList rdar://100915554 Reviewed by Jer Noble. CARingBuffer::fetchInternal() sets mDataByteSize to nbytes unconditionally, but it won't be able fill that much if (nbytes + offset) is bigger than existing mDataByteSize; FetchABL() calculates the real number of bytes that can be filled. * Source/WebCore/platform/audio/cocoa/CARingBuffer.cpp: (WebCore::FetchABL): (WebCore::CARingBuffer::fetchInternal): * Tools/TestWebKitAPI/Tests/WebCore/CARingBuffer.cpp: (TestWebKitAPI::TEST_F): Canonical link: https://commits.webkit.org/252432.777@safari-7614-branch Canonical link: https://commits.webkit.org/258115@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes