swscale: fix filter alignment reduction without inline asm
authorHendrik Leppkes <h.leppkes@gmail.com>
Fri, 21 Jun 2013 16:10:38 +0000 (18:10 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Jun 2013 19:01:11 +0000 (21:01 +0200)
Fixes scaling in MSVC/ICL, where inline asm is not present, but the
YASM scaling code is.

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/utils.c

index 6324bc8..fb0a7ad 100644 (file)
@@ -535,7 +535,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos,
             filterAlign = 1;
     }
 
-    if (INLINE_MMX(cpu_flags)) {
+    if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) {
         // special case for unscaled vertical filtering
         if (minFilterSize == 1 && filterAlign == 2)
             filterAlign = 1;