summaryrefslogtreecommitdiffstats
path: root/dec_video.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-20 20:42:13 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-20 20:42:13 +0000
commit9e522e286b3f3eb4fad81a572577a9c70beb56fc (patch)
tree54d349383a9a45dccbd13bfaf5c69215a11430f6 /dec_video.c
parentca332b48c1abe42d6772903cff03eb2ada2d0f66 (diff)
downloadmpv-9e522e286b3f3eb4fad81a572577a9c70beb56fc.tar.bz2
mpv-9e522e286b3f3eb4fad81a572577a9c70beb56fc.tar.xz
MMX problem workaround for broken (win32) codecs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1368 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r--dec_video.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dec_video.c b/dec_video.c
index b8164ff08a..bb9511d2ef 100644
--- a/dec_video.c
+++ b/dec_video.c
@@ -394,6 +394,12 @@ else
} // 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){