summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-21 00:40:37 +0200
committerwm4 <wm4@nowhere>2013-05-21 00:40:37 +0200
commit644131fdb4e152d6984acc42dacd01a99b6fc54d (patch)
tree4b3338ccaf5041d99b85744c29bdf695dc1d16d1 /video
parent9ccb1739b2df3925d78a977b988ba666dd5bccb6 (diff)
downloadmpv-644131fdb4e152d6984acc42dacd01a99b6fc54d.tar.bz2
mpv-644131fdb4e152d6984acc42dacd01a99b6fc54d.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/decode/dec_video.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c
index 5e55e78220..c084d76704 100644
--- a/video/decode/dec_video.c
+++ b/video/decode/dec_video.c
@@ -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