Fix compilation with --disable-mmx.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 30 Aug 2013 13:21:15 +0000 (15:21 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 30 Aug 2013 13:21:15 +0000 (15:21 +0200)
libavcodec/x86/dsputil_init.c

index 1baeeee..df7918a 100644 (file)
@@ -678,7 +678,7 @@ av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx)
     int cpu_flags = av_get_cpu_flags();
 
 #if HAVE_7REGS && HAVE_INLINE_ASM
-    if (cpu_flags & AV_CPU_FLAG_CMOV)
+    if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_CMOV)
         c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov;
 #endif