[FFmpeg-devel] [PATCH 2/7] avcodec/cavsdec: Clear MMX state after MB decode loop

Michael Niedermayer michael at niedermayer.cc
Fri Oct 21 16:31:41 EEST 2016


The MMX state must be cleared between using MMX and using memory allocation
thats basically the only location between the 2

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/cavsdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index 70ac6f8..b7df119 100644
--- a/libavcodec/cavsdec.c
+++ b/libavcodec/cavsdec.c
@@ -1104,6 +1104,7 @@ static int decode_pic(AVSContext *h)
             }
         } while (ff_cavs_next_mb(h));
     }
+    emms_c();
     if (h->cur.f->pict_type != AV_PICTURE_TYPE_B) {
         av_frame_unref(h->DPB[1].f);
         FFSWAP(AVSFrame, h->cur, h->DPB[1]);
-- 
2.10.1



More information about the ffmpeg-devel mailing list