diff --git a/postproc/swscale.c b/postproc/swscale.c index c37d7b655c..c5170490a0 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -644,6 +644,13 @@ YSCALEYUV2RGB g16Dither2= g16Dither; } +#ifdef HAVE_3DNOW + asm volatile("femms"); +#elif defined (HAVE_MMX) + asm volatile("emms"); +#endif + + } diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c index c37d7b655c..c5170490a0 100644 --- a/postproc/swscale_template.c +++ b/postproc/swscale_template.c @@ -644,6 +644,13 @@ YSCALEYUV2RGB g16Dither2= g16Dither; } +#ifdef HAVE_3DNOW + asm volatile("femms"); +#elif defined (HAVE_MMX) + asm volatile("emms"); +#endif + + }