mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 20:32:13 +00:00
MMX problem workaround for broken (win32) codecs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1368 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ca332b48c1
commit
9e522e286b
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user