Commit 86dd4b04 authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg2dec: support CODEC_FLAG2_SHOW_ALL.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 49073022
......@@ -2438,7 +2438,7 @@ static int decode_chunks(AVCodecContext *avctx,
break;
}
}
if (s2->pict_type == AV_PICTURE_TYPE_I)
if (s2->pict_type == AV_PICTURE_TYPE_I || (s2->flags2 & CODEC_FLAG2_SHOW_ALL))
s->sync=1;
if (s2->next_picture_ptr == NULL) {
/* Skip P-frames if we do not have a reference frame or we have an invalid header. */
......
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