RESOLVED DUPLICATE of bug 287516302714
VideoDecoder sometimes spits out frames in decode order, not in presentation order
https://bugs.webkit.org/show_bug.cgi?id=302714
Summary VideoDecoder sometimes spits out frames in decode order, not in presentation ...
David
Reported 2025-11-18 08:11:46 PST
Created attachment 477421 [details] Source file for the video packets in the reproduction Here's a reproduction: https://kaleidoscopic-babka-de57cf.netlify.app/ I noticed that for some files, VideoDecoder incorretly emits decoded frames in decode order instead of properly reordering them in presentation order like is required per spec. This is basically the bug reported here (https://bugs.webkit.org/show_bug.cgi?id=287516) but I decided to provide a simple reproduction. I have been employing custom user-side logic to work around this issue on Safari, but I have also stumbled upon WebKit's VideoDecoder ordering frames differently when ran in a Web Worker, see this here: https://github.com/Vanilagy/mediabunny/issues/223 I thought it's better to first address the incorrect ordering in the normal case, and then when we have clarity on that, investigate the Web Worker issue.
Attachments
Source file for the video packets in the reproduction (693.13 KB, video/quicktime)
2025-11-18 08:11 PST, David
no flags
Other file (big buck bunny section) that also exhibits this behavior (5.55 MB, video/mp4)
2025-11-18 08:12 PST, David
no flags
David
Comment 1 2025-11-18 08:12:16 PST
Created attachment 477422 [details] Other file (big buck bunny section) that also exhibits this behavior
Radar WebKit Bug Importer
Comment 2 2025-11-25 08:12:10 PST
youenn fablet
Comment 3 2026-01-12 02:17:30 PST
Thanks for the repro case, let's do the work in bug 287516. *** This bug has been marked as a duplicate of bug 287516 ***
Note You need to log in before you can comment on or make changes to this bug.