mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
dec_video: remove emms usage
libavcodec generally shouldn't have this problem anymore (if libavcodec ever had it). All other video decoders are gone. In any case, if this commit actually causes regressions, these are libavcodec bugs and should be fixed there instead.
This commit is contained in:
@@ -47,8 +47,6 @@
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#include "core/cpudetect.h"
|
||||
|
||||
int field_dominance = -1;
|
||||
|
||||
int divx_quality = 0;
|
||||
@@ -315,14 +313,6 @@ void *decode_video(sh_video_t *sh_video, struct demux_packet *packet,
|
||||
|
||||
//------------------------ frame decoded. --------------------
|
||||
|
||||
#if HAVE_MMX
|
||||
// some codecs are broken, and doesn't restore MMX state :(
|
||||
// it happens usually with broken/damaged files.
|
||||
if (gCpuCaps.hasMMX) {
|
||||
__asm__ volatile("emms\n\t":::"memory");
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!mpi || drop_frame) {
|
||||
talloc_free(mpi);
|
||||
return NULL; // error / skipped frame
|
||||
|
||||
Reference in New Issue
Block a user