[Webkit-unassigned] [Bug 283235] New: VideoMediaSampleRenderer will produce out of order, corrupted frame when used with b-frames.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Nov 16 14:41:11 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=283235
Bug ID: 283235
Summary: VideoMediaSampleRenderer will produce out of order,
corrupted frame when used with b-frames.
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Media
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jean-yves.avenard at apple.com
In https://commits.webkit.org/286106@main (bug 281497) we added support for decoding through a queue to keep track of decoded images by the VideoMediaSampleRenderer.
This introduced two issues:
1- The queue used to feed the decoder is a CMBufferQueue which re-order samples in presentation order. So we end up feeding the decoder the frames in presentation order rather than decode order. This causes decoded buffer to be corrupted when using it with H264/H265 content that contains B-frames.
2- The way the WebCoreDecompression is used by the VideoMediaSampleRenderer, it will output frames in decode order which are then fed to an AVSampleBufferDisplay. So we end up having frames being displayed out of order.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241116/31474d94/attachment.htm>
More information about the webkit-unassigned
mailing list