[FFmpeg-cvslog] avcodec/utils: Clear MMX state before returning from avcodec_default_execute*()

Michael Niedermayer git at videolan.org
Sat Nov 26 16:47:52 EET 2016


ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Fri Oct 21 13:40:18 2016 +0200| [865e3f5553e9f28fd343f5cadc7d520d91b17d64] | committer: Michael Niedermayer

avcodec/utils: Clear MMX state before returning from avcodec_default_execute*()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 4f96f9d1118e073d346d16be157fa5075434e7f2)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=865e3f5553e9f28fd343f5cadc7d520d91b17d64
---

 libavcodec/utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index cc28732..3b85087 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;
 }
 



More information about the ffmpeg-cvslog mailing list