changeset 1367:16bedc82bd09

MMX problem workaround for broken (win32) codecs
author arpi
date Fri, 20 Jul 2001 20:42:13 +0000
parents 83048562f070
children faee296c7c9a
files dec_video.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dec_video.c	Fri Jul 20 19:47:24 2001 +0000
+++ b/dec_video.c	Fri Jul 20 20:42:13 2001 +0000
@@ -394,6 +394,12 @@
 } // switch
 //------------------------ frame decoded. --------------------
 
+#ifdef HAVE_MMX
+	// some codecs is broken, and doesn't restore MMX state :(
+	// it happens usually with broken/damaged files.
+	__asm __volatile ("emms;":::"memory");
+#endif
+
 t2=GetTimer();t=t2-t;video_time_usage+=t*0.000001f;
 
 switch(blit_frame){