[MPlayer-cvslog] r34399 - trunk/libmpcodecs/dec_video.c

reimar subversion at mplayerhq.hu
Mon Dec 5 19:22:56 CET 2011


Author: reimar
Date: Mon Dec  5 19:22:56 2011
New Revision: 34399

Log:
Make emms/femms code simpler/more obvious.

Modified:
   trunk/libmpcodecs/dec_video.c

Modified: trunk/libmpcodecs/dec_video.c
==============================================================================
--- trunk/libmpcodecs/dec_video.c	Mon Dec  5 19:09:21 2011	(r34398)
+++ trunk/libmpcodecs/dec_video.c	Mon Dec  5 19:22:56 2011	(r34399)
@@ -420,15 +420,13 @@ void *decode_video(sh_video_t *sh_video,
         }
     }
 
-#if HAVE_MMX
     // some codecs are broken, and doesn't restore MMX state :(
     // it happens usually with broken/damaged files.
-    if (gCpuCaps.has3DNow) {
+    if (HAVE_AMD3DNOW && gCpuCaps.has3DNow) {
         __asm__ volatile ("femms\n\t":::"memory");
-    } else if (gCpuCaps.hasMMX) {
+    } else if (HAVE_MMX && gCpuCaps.hasMMX) {
         __asm__ volatile ("emms\n\t":::"memory");
     }
-#endif
 
     t2 = GetTimer();
     t = t2 - t;


More information about the MPlayer-cvslog mailing list