Commit 493ad519 authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 70dc6bbf
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment