]> git.sesse.net Git - ffmpeg/commitdiff
Fix compilation of AC3 decoder if E-AC3 decoder was disabled.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Thu, 13 May 2010 20:41:36 +0000 (20:41 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Thu, 13 May 2010 20:41:36 +0000 (20:41 +0000)
Originally committed as revision 23131 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3dec.c

index 0f9052ec26f4c63d83717966b9abf3c5b0a2bd64..f2f6e5ce4d1ab4fe0c6de543a5219bfe9e13a457 100644 (file)
@@ -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);
     }