Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 566407e0d17886a586a974e21f282962491bd01d
https://github.com/WebKit/WebKit/commit/566407e0d17886a586a974e21f282962491bd01d
Author: Jean-Yves Avenard <[email protected]>
Date: 2026-10-02 (Fri, 02 Oct 2026)
Changed paths:
M Source/WebCore/platform/libwebrtc/LibWebRTCVPXVideoDecoder.cpp
Log Message:
-----------
Software VP9 decoder silently drops 4:4:4 frames and corrupts 12-bit frames
https://bugs.webkit.org/show_bug.cgi?id=325884
rdar://188868857
Reviewed by Youenn Fablet.
LibvpxVp9Decoder wraps 4:4:4 output as kI444 or kI410 buffers, which
VideoFrameLibWebRTC::create()
rejects, and LibWebRTCVPXInternalVideoDecoder::Decoded() then returned without
output while the
decode promise resolved. 12-bit 4:2:0 output is wrapped as kI010 regardless of
its bit depth and
converted with libyuv::I010ToP010(), which shifts each sample for a 10-bit
depth, so values above
1023 overflowed.
decode() now rejects keyframes whose header reports more than 10 bits, and
rejects a decode during
which Decoded() could not wrap the output frame.
* Source/WebCore/platform/libwebrtc/LibWebRTCVPXVideoDecoder.cpp:
(WebCore::LibWebRTCVPXInternalVideoDecoder::decode): Reject 12-bit keyframes
and unwrapped output.
(WebCore::LibWebRTCVPXInternalVideoDecoder::Decoded): Record that the output
could not be wrapped.
Canonical link: https://commits.webkit.org/322513@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications