[webkit-changes] [WebKit/WebKit] 48e84c: [Ventura] WebCodecs AudioDecoder tests intermitten...
Jean-Yves Avenard
noreply at github.com
Sat Jan 25 01:35:35 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 48e84cccc7c15486695f56b892b849ff6cf4dcbb
https://github.com/WebKit/WebKit/commit/48e84cccc7c15486695f56b892b849ff6cf4dcbb
Author: Jean-Yves Avenard <jya at apple.com>
Date: 2025-01-25 (Sat, 25 Jan 2025)
Changed paths:
M LayoutTests/TestExpectations
M LayoutTests/imported/w3c/web-platform-tests/webcodecs/audioDecoder-codec-specific.https.any.js
M LayoutTests/platform/glib/TestExpectations
M LayoutTests/platform/mac/TestExpectations
M Source/WebCore/Modules/webcodecs/WebCodecsAudioData.cpp
M Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
M Source/WebCore/platform/audio/cocoa/AudioDecoderCocoa.cpp
Log Message:
-----------
[Ventura] WebCodecs AudioDecoder tests intermittently fail on Ventura
https://bugs.webkit.org/show_bug.cgi?id=284671
rdar://141465725
Reviewed by Philippe Normand.
Underlying issue was fixed by 289260 at main.
Fly-By: The test checked that for each AudioDecoder.decode() operation you
got one and exactly one callback call. This isn't a valid assumption as
a single decode could lead to multiple output calls or less.
Only after a call to flush() ensure that all frames have been decoded.
So we modify the WPT test to check that the number of decoded frames is valid
and not check the number of callback calls.
* LayoutTests/TestExpectations:
* LayoutTests/platform/glib/TestExpectations: GStreamer returns half the expected amount of PCM frames, lodged as webkit.org/b/286526
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/audioDecoder-codec-specific.https.any.js: Ensure AudioData object is closed early.
* LayoutTests/platform/mac/TestExpectations:
* Source/WebCore/Modules/webcodecs/WebCodecsAudioData.cpp: There is no spec requirements that AudioData must be explicitly closed. Remove console warning.
(WebCore::WebCodecsAudioData::~WebCodecsAudioData): Deleted.
* Source/WebCore/platform/audio/cocoa/AudioDecoderCocoa.cpp:
(WebCore::InternalAudioDecoderCocoa::flush): Drain the internal decoder rather than flush it.
This is inline with what both gecko and blink are doing and is closer to the spec which states:
"Signal [[codec implementation]] to emit all internal pending outputs."
Canonical link: https://commits.webkit.org/289383@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list