From 86dd4b0495b64eb5741339902417d3e2124679f8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 18 Sep 2011 15:20:36 +0200 Subject: [PATCH] mpeg2dec: support CODEC_FLAG2_SHOW_ALL. Signed-off-by: Michael Niedermayer --- libavcodec/mpeg12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index f40c704a79..9134becb01 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -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. */