firefox: use ffmpeg 8 for browsers that support it

Assisted-by: Claude Code (Claude Fable 5)
(cherry picked from commit e7e521c4f9)
This commit is contained in:
Jack Boykin
2026-08-03 12:19:07 -05:00
committed by github-actions[bot]
parent 3850b7cacb
commit 56bf680132

View File

@@ -13,6 +13,7 @@
## various stuff that can be plugged in
ffmpeg_7,
ffmpeg_8,
libxxf86vm,
libxxf86dga,
libxt,
@@ -89,6 +90,11 @@ let
let
ffmpegSupport = browser.ffmpegSupport or false;
# Firefox dlopens libavcodec by hardcoded soname, so each ffmpeg major needs
# explicit browser support; keep versioned pins here (never the ffmpeg alias)
# and add a tier when a release gains the next ABI. 146 added libavcodec 62
# (https://bugzilla.mozilla.org/show_bug.cgi?id=1962139), not uplifted to ESR 140.
ffmpegPackage = if lib.versionAtLeast browser.version "146" then ffmpeg_8 else ffmpeg_7;
gssSupport = browser.gssSupport or false;
alsaSupport = browser.alsaSupport or false;
pipewireSupport = browser.pipewireSupport or false;
@@ -114,7 +120,7 @@ let
++ lib.optional (cfg.speechSynthesisSupport or true) speechd-minimal
)
++ lib.optional pipewireSupport pipewire
++ lib.optional ffmpegSupport ffmpeg_7
++ lib.optional ffmpegSupport ffmpegPackage
++ lib.optional gssSupport libkrb5
++ lib.optional useGlvnd libglvnd
++ lib.optionals (cfg.enableQuakeLive or false) [