Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dd194fb88787f60fe95dd6a4eb24e3d923a322fb
https://github.com/WebKit/WebKit/commit/dd194fb88787f60fe95dd6a4eb24e3d923a322fb
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:
-----------
[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
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications