[FFmpeg-cvslog] Fix compilation with --disable-mmx.

Carl Eugen Hoyos git at videolan.org
Fri Aug 30 16:33:18 CEST 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Aug 30 15:21:15 2013 +0200| [8fe1fb41ac285a7867fa07c3b9cfe646737a9595] | committer: Carl Eugen Hoyos

Fix compilation with --disable-mmx.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8fe1fb41ac285a7867fa07c3b9cfe646737a9595
---

 libavcodec/x86/dsputil_init.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/x86/dsputil_init.c b/libavcodec/x86/dsputil_init.c
index 1baeeee..df7918a 100644
--- a/libavcodec/x86/dsputil_init.c
+++ b/libavcodec/x86/dsputil_init.c
@@ -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
 



More information about the ffmpeg-cvslog mailing list