From eb0a4d32222fedf8022d602b0fd0907e07b54330 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 13 May 2010 20:41:36 +0000 Subject: [PATCH] Fix compilation of AC3 decoder if E-AC3 decoder was disabled. Originally committed as revision 23131 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 0f9052ec2..f2f6e5ce4 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -1268,7 +1268,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) } /* apply spectral extension to high frequency bins */ - if (s->spx_in_use) { + if (s->spx_in_use && CONFIG_EAC3_DECODER) { ff_eac3_apply_spectral_extension(s); } -- 2.11.0