Fix compilation with --disable-everything --enable-encoder=flac.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 8 Feb 2014 11:06:49 +0000 (12:06 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 8 Feb 2014 11:06:49 +0000 (12:06 +0100)
libavcodec/flacdsp.c

index b15bc74..89cf09a 100644 (file)
@@ -128,6 +128,6 @@ av_cold void ff_flacdsp_init(FLACDSPContext *c, enum AVSampleFormat fmt,
 
     if (ARCH_ARM)
         ff_flacdsp_init_arm(c, fmt, bps);
-    if (ARCH_X86)
+    if (ARCH_X86 && CONFIG_FLAC_DECODER)
         ff_flacdsp_init_x86(c, fmt, bps);
 }