[webkit-changes] [WebKit/WebKit] 03b0d0: Cherry-pick 252432.777 at safari-7614-branch (907f9f0...

Sihui noreply at github.com
Mon Dec 19 18:01:54 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 03b0d03cceae2c081da42c1aa7969b9a89782956
      https://github.com/WebKit/WebKit/commit/03b0d03cceae2c081da42c1aa7969b9a89782956
  Author: Sihui Liu <sihui_liu at 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 at 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




More information about the webkit-changes mailing list