lavc/x86/vc1dsp_init: Fix compilation with --disable-yasm.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 22 Oct 2015 09:37:42 +0000 (11:37 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 22 Oct 2015 09:37:42 +0000 (11:37 +0200)
libavcodec/x86/vc1dsp_init.c

index 8c5fc20..1747305 100644 (file)
@@ -98,10 +98,10 @@ av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp)
 {
     int cpu_flags = av_get_cpu_flags();
 
-    if (HAVE_6REGS && INLINE_MMX(cpu_flags))
+    if (HAVE_6REGS && INLINE_MMX(cpu_flags) && EXTERNAL_MMX(cpu_flags))
         ff_vc1dsp_init_mmx(dsp);
 
-    if (HAVE_6REGS && INLINE_MMXEXT(cpu_flags))
+    if (HAVE_6REGS && INLINE_MMXEXT(cpu_flags) && EXTERNAL_MMXEXT(cpu_flags))
         ff_vc1dsp_init_mmxext(dsp);
 
 #define ASSIGN_LF(EXT) \