[FFmpeg-devel] [PATCH] fix configure if only AC3 selected

Carl Eugen Hoyos cehoyos
Thu May 13 13:01:23 CEST 2010


On Thursday 13 May 2010 00:01:55 Justin Ruggles wrote:

> I would rather avoid compiling extra files unnecessarily.  Two
> alternative patches attached.  Not sure which, if either, would be the
> better approach.

Attached is a third possibility.

Please comment, Carl Eugen
-------------- next part --------------
Index: libavcodec/ac3dec.c
===================================================================
--- libavcodec/ac3dec.c	(revision 23107)
+++ libavcodec/ac3dec.c	(working copy)
@@ -1268,7 +1268,7 @@
     }
 
     /* 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);
     }
 



More information about the ffmpeg-devel mailing list