Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: H.264 video in Firefox freezes after seeking backwards. The frame at the seek target is shown, then video stops while audio and the timer continue. libavcodec's libopenh264 wrapper has no flush callback, so the decoder keeps its reference pictures across avcodec_flush_buffers() and fails to decode afterwards. Only streams with B-frames are affected. Version-Release number of selected component (if applicable): libavcodec-free-8.1.3-1.fc44.x86_64 openh264-2.6.0-3.fc44.x86_64 firefox-157.0-1.fc44.x86_64 How reproducible: This is consistently reproducible on my machine. Steps to Reproduce: 1. Stock Fedora, firefox, libavcodec-free and openh264 installed (no RPM Fusion). 2. Open https://www.youtube.com/watch?v=dhbTdHLK_LM in Firefox. 3. Let it play for about 20 seconds. 4. Seek backwards by clicking on the video progress bar. Actual results: Video freezes, audio keeps playing. Expected results: Video and audio play from the seek frame. Additional info: Fixed upstream on FFmpeg master, to be released in 9.1: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23212 The patch touches one file (+22/-1) and applies cleanly to 7.1, 8.1 and 9.0. Could it be backported to the supported Fedora releases? This issue is quite impactful, as the out-of-the-box Fedora browser video playback experience is poor. Over the years, this has been my main (and sometimes only) reason for installing chrome or RPM fusion. I'm hoping this is a low-risk backport. Even though many packages other than firefox link against libavcodec, this change only acts when an app flushes the libopenh264 decoder, and today that flush leaves the decoder broken. https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/23499 https://bugzilla.mozilla.org/show_bug.cgi?id=2072655 https://discussion.fedoraproject.org/t/firefox-video-playback-issues-on-fedora-43-with-nvidia-rtx-4070-freezing-and-endless-buffering/181748 https://www.reddit.com/r/Fedora/comments/14992b8/firefox_video_playback_issues_frame_freezing_and/ https://support.mozilla.org/si/questions/1508246 https://bugzilla.redhat.com/show_bug.cgi?id=2325032
This looks reasonable. I assume the commit to be backported is: https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/883e8a6336b2651f7be79a6a9aa5f3cc22937948 .
I can confirm. In my testing that single commit fixed the issue.
FEDORA-2026-ca1ddaf1d9 (ffmpeg-9.0.2-3.fc46) has been submitted as an update to Fedora 46. https://bodhi.fedoraproject.org/updates/FEDORA-2026-ca1ddaf1d9
FEDORA-2026-3d4f4334d7 (ffmpeg-9.0.2-3.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-3d4f4334d7
FEDORA-2026-ddf8b57870 (ffmpeg-8.1.3-2.fc44) has been submitted as an update to Fedora 44. https://bodhi.fedoraproject.org/updates/FEDORA-2026-ddf8b57870
FEDORA-2026-ca1ddaf1d9 (ffmpeg-9.0.2-3.fc46) has been pushed to the Fedora 46 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2026-ddf8b57870 has been pushed to the Fedora 44 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-ddf8b57870` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-ddf8b57870 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2026-3d4f4334d7 has been pushed to the Fedora 45 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-3d4f4334d7` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-3d4f4334d7 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
I tested the Fedora 44 `updates-testing` rpm and it fixed the problem for me. Thanks for the backport!
FEDORA-2026-3d4f4334d7 (ffmpeg-9.0.2-3.fc45) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2026-ddf8b57870 (ffmpeg-8.1.3-2.fc44) has been pushed to the Fedora 44 stable repository. If problem still persists, please make note of it in this bug report.