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

Michael Niedermayer git at videolan.org
Sat Oct 22 02:36:51 EEST 2016


ffmpeg | branch: release/3.1 | Michael Niedermayer <michael at niedermayer.cc> | Fri Oct 21 13:40:18 2016 +0200| [de487cb765ca5e4ecf600942809ca2d61cdbba81] | 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=de487cb765ca5e4ecf600942809ca2d61cdbba81
---

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

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f7adb52..17dcf60 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -991,6 +991,7 @@ int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, v
         if (ret)
             ret[i] = r;
     }
+    emms_c();
     return 0;
 }
 
@@ -1003,6 +1004,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