aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-18 15:20:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-18 15:33:50 +0200
commit86dd4b0495b64eb5741339902417d3e2124679f8 (patch)
tree67305aed836efe94a59c5af0512cf5fc24f84814 /libavcodec
parent49073022369d048b123d8ffa9c96a38179c763ce (diff)
downloadffmpeg-86dd4b0495b64eb5741339902417d3e2124679f8.tar.gz
mpeg2dec: support CODEC_FLAG2_SHOW_ALL.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg12.c2
1 files changed, 1 insertions, 1 deletions
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. */