summaryrefslogtreecommitdiffstats
path: root/postproc/swscale.c
diff options
context:
space:
mode:
Diffstat (limited to 'postproc/swscale.c')
-rw-r--r--postproc/swscale.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c
index a4dd1a4147..3bcbb8430f 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -1436,8 +1436,11 @@ else s_xinc2= s_xinc;
g16Dither2= g16Dither;
#endif
}
-__asm __volatile(SFENCE:::"memory");
-__asm __volatile(EMMS:::"memory");
+
+#ifdef HAVE_MMX
+ __asm __volatile(SFENCE:::"memory");
+ __asm __volatile(EMMS);
+#endif
}