PR #25623 opened by ffmpeg-devel
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25623
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25623.patch

**Backport:** https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25621

Since b5bfb7716c ("avcodec/ac3enc: drain the buffered samples at the
end of encoding"), ac3enc.c uses ff_af_queue_*, but the AC-3 encoders
never selected audio_frame_queue. Builds that enable only these
encoders (e.g. --disable-everything --enable-encoder=ac3) fail to link.

Signed-off-by: Vanilagy <[email protected]

# Summary of changes

I hit this when updating/rebuilding `@mediabunny/ac3` with the latest FFmpeg 
master. My configure command disables everything and then enables just the 
AC-3/E-AC-3 encoders/decoders, and that failed to link when I compiled my WASM 
bridge with Emscripten.


>From a294996e12c27eba786e32612146c6fb4a2ccd48 Mon Sep 17 00:00:00 2001
From: Vanilagy <[email protected]>
Date: Fri, 30 Oct 2026 16:24:13 +0100
Subject: [PATCH] configure: select audio_frame_queue for the AC-3 encoders

Since b5bfb7716c ("avcodec/ac3enc: drain the buffered samples at the
end of encoding"), ac3enc.c uses ff_af_queue_*, but the AC-3 encoders
never selected audio_frame_queue. Builds that enable only these
encoders (e.g. --disable-everything --enable-encoder=ac3) fail to link.

Signed-off-by: Vanilagy <[email protected]>
(cherry picked from commit a3c5339578cb1d54322e06b6bd1c8852fc6abc29)
---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 083bd652c49..3c495f47ce9 100755
--- a/configure
+++ b/configure
@@ -3069,8 +3069,8 @@ aac_encoder_select="audio_frame_queue lpc sinewin"
 aac_latm_decoder_select="aac_decoder aac_latm_parser"
 ac3_decoder_select="ac3_parser ac3dsp bswapdsp"
 ac3_fixed_decoder_select="ac3_parser ac3dsp bswapdsp"
-ac3_encoder_select="ac3dsp audiodsp me_cmp"
-ac3_fixed_encoder_select="ac3dsp audiodsp me_cmp"
+ac3_encoder_select="ac3dsp audio_frame_queue audiodsp me_cmp"
+ac3_fixed_encoder_select="ac3dsp audio_frame_queue audiodsp me_cmp"
 acelp_kelvin_decoder_select="audiodsp celp_math"
 adpcm_circus_decoder_deps="lgpl_gpl"
 adpcm_g722_decoder_select="g722dsp"
-- 
2.54.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to