[FFmpeg-cvslog] swscale: bury one more piece of inline asm under HAVE_INLINE_ASM.
Ronald S. Bultje
git at videolan.org
Mon Jul 30 23:32:24 CEST 2012
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Wed Jul 25 19:27:03 2012 -0700| [8e5d71d1109bb509ae75d04682f326fe740a413f] | committer: Ronald S. Bultje
swscale: bury one more piece of inline asm under HAVE_INLINE_ASM.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8e5d71d1109bb509ae75d04682f326fe740a413f
---
libswscale/swscale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 5cfa7f2..0f8ef2b 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -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
More information about the ffmpeg-cvslog
mailing list