You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mpeg2dec: support CODEC_FLAG2_SHOW_ALL.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2438,7 +2438,7 @@ static int decode_chunks(AVCodecContext *avctx,
|
|||||||
break;
|
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;
|
s->sync=1;
|
||||||
if (s2->next_picture_ptr == NULL) {
|
if (s2->next_picture_ptr == NULL) {
|
||||||
/* Skip P-frames if we do not have a reference frame or we have an invalid header. */
|
/* Skip P-frames if we do not have a reference frame or we have an invalid header. */
|
||||||
|
Reference in New Issue
Block a user