aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-10-21 13:40:18 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-11-26 15:12:25 +0100
commit865e3f5553e9f28fd343f5cadc7d520d91b17d64 (patch)
tree03e4704d471755e841bd0ab5294707a0217b2616
parentd1c87a4a6fd9f32b9cd5e44190dc5ea0ad95b2dc (diff)
downloadffmpeg-865e3f5553e9f28fd343f5cadc7d520d91b17d64.tar.gz
avcodec/utils: Clear MMX state before returning from avcodec_default_execute*()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4f96f9d1118e073d346d16be157fa5075434e7f2) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index cc28732c01..3b85087563 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1118,6 +1118,7 @@ int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, v
if (ret)
ret[i] = r;
}
+ emms_c();
return 0;
}
@@ -1130,6 +1131,7 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
if (ret)
ret[i] = r;
}
+ emms_c();
return 0;
}