Branch: refs/heads/webkitglib/2.54
  Home:   https://github.com/WebKit/WebKit
  Commit: c930277ca0aa125f012e8ec5870b25c5e9255375
      
https://github.com/WebKit/WebKit/commit/c930277ca0aa125f012e8ec5870b25c5e9255375
  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/317695.377@webkitglib/2.54



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

Reply via email to