[FFmpeg-devel,09/13] avcodec/svq1dec: clear MMX state after MB decode loop

Submitted by Michael Niedermayer on Oct. 22, 2016, 7:02 p.m.

Details

Message ID 20161022190211.16526-9-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Oct. 22, 2016, 7:02 p.m.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/svq1dec.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index 2b72e08..0fe222e 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -744,6 +744,7 @@  static int svq1_decode_frame(AVCodecContext *avctx, void *data,
             }
         }
     }
+    emms_c();
 
     if (!s->nonref) {
         av_frame_unref(s->prev);
@@ -756,6 +757,7 @@  static int svq1_decode_frame(AVCodecContext *avctx, void *data,
     result     = buf_size;
 
 err:
+    emms_c();
     av_free(pmv);
     return result;
 }