Browse code

Fix compilation of AC3 decoder if E-AC3 decoder was disabled.

Originally committed as revision 23131 to svn://svn.ffmpeg.org/ffmpeg/trunk

Carl Eugen Hoyos authored on 2010/05/14 05:41:36
Showing 1 changed files
... ...
@@ -1268,7 +1268,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
1268 1268
     }
1269 1269
 
1270 1270
     /* apply spectral extension to high frequency bins */
1271
-    if (s->spx_in_use) {
1271
+    if (s->spx_in_use && CONFIG_EAC3_DECODER) {
1272 1272
         ff_eac3_apply_spectral_extension(s);
1273 1273
     }
1274 1274