diff mbox

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

Message ID 20161021133146.11956-2-michael@niedermayer.cc
State Accepted
Commit 493ad519ddee260200f7a00a2e5ed8cbd28b7f67
Headers show

Commit Message

Michael Niedermayer Oct. 21, 2016, 1:31 p.m. UTC
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@niedermayer.cc>
---
 libavcodec/cavsdec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Oct. 22, 2016, 12:18 p.m. UTC | #1
On Fri, Oct 21, 2016 at 03:31:41PM +0200, Michael Niedermayer wrote:
> 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@niedermayer.cc>
> ---
>  libavcodec/cavsdec.c | 1 +
>  1 file changed, 1 insertion(+)

applied

[...]
diff mbox

Patch

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]);