]> git.sesse.net Git - ffmpeg/commitdiff
swscale: bury one more piece of inline asm under HAVE_INLINE_ASM.
authorRonald S. Bultje <rsbultje@gmail.com>
Thu, 26 Jul 2012 02:27:03 +0000 (19:27 -0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 30 Jul 2012 00:14:48 +0000 (17:14 -0700)
libswscale/swscale.c

index 5cfa7f237de12a93c37141441e4018eaaef8246c..0f8ef2b15cbdb1714f26a8ed49b08cc150525d25 100644 (file)
@@ -661,7 +661,7 @@ static int swScale(SwsContext *c, const uint8_t *src[],
     if (isPlanar(dstFormat) && isALPHA(dstFormat) && !alpPixBuf)
         fillPlane(dst[3], dstStride[3], dstW, dstY - lastDstY, lastDstY, 255);
 
-#if HAVE_MMX2
+#if HAVE_MMX2 && HAVE_INLINE_ASM
     if (av_get_cpu_flags() & AV_CPU_FLAG_MMX2)
         __asm__ volatile ("sfence" ::: "memory");
 #endif