[FFmpeg-cvslog] avcodec/cavsdec: Clear MMX state after MB decode loop

Michael Niedermayer git at videolan.org
Sat Oct 22 15:28:10 EEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Oct 21 14:38:52 2016 +0200| [493ad519ddee260200f7a00a2e5ed8cbd28b7f67] | committer: Michael Niedermayer

avcodec/cavsdec: Clear MMX state after MB decode loop

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>

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

 libavcodec/cavsdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index fed7043..73a923d 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]);



More information about the ffmpeg-cvslog mailing list