From 644131fdb4e152d6984acc42dacd01a99b6fc54d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 21 May 2013 00:40:37 +0200 Subject: 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. --- video/decode/dec_video.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'video') 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 -- cgit v1.2.3