OSDN Git Service

Fix compilation on powerpc with --disable-altivec.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 5 Mar 2011 03:05:16 +0000 (22:05 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 7 Mar 2011 16:15:25 +0000 (11:15 -0500)
libavcodec/fmtconvert.c

index e26b899..bf762cc 100644 (file)
@@ -63,6 +63,6 @@ av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx)
     c->float_to_int16_interleave  = float_to_int16_interleave_c;
 
     if (ARCH_ARM) ff_fmt_convert_init_arm(c, avctx);
-    if (ARCH_PPC) ff_fmt_convert_init_ppc(c, avctx);
+    if (HAVE_ALTIVEC) ff_fmt_convert_init_ppc(c, avctx);
     if (HAVE_MMX) ff_fmt_convert_init_x86(c, avctx);
 }