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:
wm4
2013-05-21 00:40:37 +02:00
parent 9ccb1739b2
commit 644131fdb4
-10
View File
@@ -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