Bug 2547586 - libopenh264 decoder not reset on flush: H.264 freezes after seeking in Firefox (upstream fix available)
Summary: libopenh264 decoder not reset on flush: H.264 freezes after seeking in Firefo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ffmpeg
Version: 44
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominik 'Rathann' Mierzejewski
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-07 16:42 UTC by Tim Elliott
Modified: 2026-11-03 01:39 UTC (History)
5 users (show)

Fixed In Version: ffmpeg-9.0.2-3.fc46 ffmpeg-9.0.2-3.fc45 ffmpeg-8.1.3-2.fc44
Clone Of:
Environment:
Last Closed: 2026-10-31 00:48:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tim Elliott 2026-10-07 16:42:12 UTC
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

Comment 1 Dominik 'Rathann' Mierzejewski 2026-10-11 22:27:49 UTC
This looks reasonable.

I assume the commit to be backported is: https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/883e8a6336b2651f7be79a6a9aa5f3cc22937948 .

Comment 2 Tim Elliott 2026-10-17 12:04:15 UTC
I can confirm. In my testing that single commit fixed the issue.

Comment 3 Fedora Update System 2026-10-30 23:18:09 UTC
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

Comment 4 Fedora Update System 2026-10-30 23:34:21 UTC
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

Comment 5 Fedora Update System 2026-10-30 23:35:21 UTC
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

Comment 6 Fedora Update System 2026-10-31 00:48:24 UTC
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.

Comment 7 Fedora Update System 2026-10-31 03:04:27 UTC
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.

Comment 8 Fedora Update System 2026-10-31 05:14:50 UTC
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.

Comment 9 Tim Elliott 2026-10-31 07:03:19 UTC
I tested the Fedora 44 `updates-testing` rpm and it fixed the problem for me. Thanks for the backport!

Comment 10 Fedora Update System 2026-10-31 18:54:18 UTC
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.

Comment 11 Fedora Update System 2026-11-03 01:39:04 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.