summaryrefslogtreecommitdiff
path: root/libavcodec/cavsdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-10-21 14:38:52 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-22 13:46:05 +0200
commit493ad519ddee260200f7a00a2e5ed8cbd28b7f67 (patch)
tree5dca005e042c89d8146857d21db05ef4e14c2e2e /libavcodec/cavsdec.c
parent70dc6bbf1bf0c78d6d5f8a0a195b57b6d66a56c0 (diff)
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@niedermayer.cc>
Diffstat (limited to 'libavcodec/cavsdec.c')
-rw-r--r--libavcodec/cavsdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index fed7043c12..73a923df30 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]);