[FFmpeg-cvslog] Correctly implement:

Michael Niedermayer git at videolan.org
Sun Apr 3 18:20:07 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 26 22:51:56 2011 +0100| [151193603402aa2dde105c342b658696ccb441b0] | committer: Michael Niedermayer

Correctly implement:
	commit c0ec9918b066c6bfca8613ac75b589bd3e405971
	Author: Måns Rullgård <mans at mansr.com>
	Date:   Tue Aug 24 17:47:05 2010 +0000
	Remove global mm_flags variable

	Originally committed as revision 24909 to svn://svn.ffmpeg.org/ffmpeg/trunk

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=151193603402aa2dde105c342b658696ccb441b0
---

 libavcodec/dsputil.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 4f1f650..5c2a9fe 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -637,7 +637,11 @@ static inline void emms(void)
     __asm__ volatile ("emms;":::"memory");
 }
 
-#define emms_c() emms()
+#define emms_c() \
+{\
+    if(av_get_cpu_flags() & AV_CPU_FLAG_MMX)\
+        emms();\
+}
 
 #elif ARCH_ARM
 



More information about the ffmpeg-cvslog mailing list