swscale: Remove HAVE_MMX from files that are only compiled with MMX enabled.
authorDiego Biurrun <diego@biurrun.de>
Tue, 14 Jun 2011 22:56:31 +0000 (00:56 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 14 Jun 2011 23:18:10 +0000 (01:18 +0200)
libswscale/x86/rgb2rgb.c
libswscale/x86/yuv2rgb_mmx.c

index 97c50dd..282618c 100644 (file)
@@ -127,7 +127,7 @@ void rgb2rgb_init_x86(void)
 {
     int cpu_flags = av_get_cpu_flags();
 
 {
     int cpu_flags = av_get_cpu_flags();
 
-    if (HAVE_MMX      && cpu_flags & AV_CPU_FLAG_MMX)
+    if (cpu_flags & AV_CPU_FLAG_MMX)
         rgb2rgb_init_MMX();
     if (HAVE_AMD3DNOW && cpu_flags & AV_CPU_FLAG_3DNOW)
         rgb2rgb_init_3DNOW();
         rgb2rgb_init_MMX();
     if (HAVE_AMD3DNOW && cpu_flags & AV_CPU_FLAG_3DNOW)
         rgb2rgb_init_3DNOW();
index 50f475a..0eaea77 100644 (file)
@@ -81,7 +81,7 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c)
     }
 #endif
 
     }
 #endif
 
-    if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) {
+    if (cpu_flags & AV_CPU_FLAG_MMX) {
         switch (c->dstFormat) {
             case PIX_FMT_RGB32:
                 if (c->srcFormat == PIX_FMT_YUVA420P) {
         switch (c->dstFormat) {
             case PIX_FMT_RGB32:
                 if (c->srcFormat == PIX_FMT_YUVA420P) {