[FFmpeg-cvslog] mpeg2dec: support CODEC_FLAG2_SHOW_ALL.

Michael Niedermayer git at videolan.org
Sun Sep 18 15:40:20 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep 18 15:20:36 2011 +0200| [86dd4b0495b64eb5741339902417d3e2124679f8] | committer: Michael Niedermayer

mpeg2dec: support CODEC_FLAG2_SHOW_ALL.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=86dd4b0495b64eb5741339902417d3e2124679f8
---

 libavcodec/mpeg12.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index f40c704..9134bec 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. */



More information about the ffmpeg-cvslog mailing list