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

reimar subversion at mplayerhq.hu
Mon Jan 25 23:25:40 EET 2021


Author: reimar
Date: Mon Jan 25 23:25:40 2021
New Revision: 38245

Log:
dec_video.c: check HAVE_INLINE_ASM before using inline asm.

Fixes compilation when inline assembler is not
actually supported.

Modified:
   trunk/libmpcodecs/dec_video.c

Modified: trunk/libmpcodecs/dec_video.c
==============================================================================
--- trunk/libmpcodecs/dec_video.c	Mon Jan 25 23:02:21 2021	(r38244)
+++ trunk/libmpcodecs/dec_video.c	Mon Jan 25 23:25:40 2021	(r38245)
@@ -434,11 +434,13 @@ void *decode_video(sh_video_t *sh_video,
 
     // some codecs are broken, and doesn't restore MMX state :(
     // it happens usually with broken/damaged files.
+#if HAVE_INLINE_ASM
     if (HAVE_AMD3DNOW_INLINE && gCpuCaps.has3DNow) {
         __asm__ volatile ("femms\n\t":::"memory");
     } else if (HAVE_MMX_INLINE && gCpuCaps.hasMMX) {
         __asm__ volatile ("emms\n\t":::"memory");
     }
+#endif
 
     t2 = GetTimer();
     t = t2 - t;


More information about the MPlayer-cvslog mailing list