Branch: refs/heads/webkitglib/2.52
  Home:   https://github.com/WebKit/WebKit
  Commit: 2e29d1dc82fd01f69f54f51fb4a92d951c5b2d1e
      
https://github.com/WebKit/WebKit/commit/2e29d1dc82fd01f69f54f51fb4a92d951c5b2d1e
  Author: Claudio Saavedra <[email protected]>
  Date:   2026-10-01 (Thu, 01 Oct 2026)

  Changed paths:
    A 
LayoutTests/fast/webcodecs/audio-data-copy-to-planar-frame-offset-expected.txt
    A LayoutTests/fast/webcodecs/audio-data-copy-to-planar-frame-offset.html
    M Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.cpp
    M Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp

  Log Message:
  -----------
  Cherry-pick 322365@main (dd194fb88787). 
https://bugs.webkit.org/show_bug.cgi?id=322573

    [GStreamer][WebCodecs] AudioData.copyTo() mishandles frameOffset when 
converting interleaved data
    https://bugs.webkit.org/show_bug.cgi?id=322573

    Reviewed by Philippe Normand.

    Based on a patch by Han Zheng <[email protected]>.

    When copying interleaved audio to a different format, the frame offset was
    multiplied by the number of channels, and GstMappedAudioBuffer::samples()
    stored each deinterleaved sample at its source frame index rather than
    relative to the offset. Pass the frame offset as is and store samples
    relative to it.

    Test: fast/webcodecs/audio-data-copy-to-planar-frame-offset.html

    * 
LayoutTests/fast/webcodecs/audio-data-copy-to-planar-frame-offset-expected.txt: 
Added.
    * LayoutTests/fast/webcodecs/audio-data-copy-to-planar-frame-offset.html: 
Added.
    * Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.cpp:
    (WebCore::PlatformRawAudioData::copyTo):
    * Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:
    (WebCore::GstMappedAudioBuffer::samples const):

    Canonical link: https://commits.webkit.org/322365@main

Canonical link: https://commits.webkit.org/305877.1186@webkitglib/2.52



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to