diff dec_video.c @ 1367:16bedc82bd09

MMX problem workaround for broken (win32) codecs
author arpi
date Fri, 20 Jul 2001 20:42:13 +0000
parents 6afdec7722d9
children dbcb5b5e1fae
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){