[FFmpeg-cvslog] mpeg12: fixed parsing in some mpeg2 streams

Hendrik Leppkes git at videolan.org
Thu May 3 21:28:06 CEST 2012


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sun Apr 29 16:33:40 2012 +0000| [1d4a01474d54a4d3bb59dc94d285334f7bcbd889] | committer: Derek Buitenhuis

mpeg12: fixed parsing in some mpeg2 streams

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

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

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

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 40ba97b..c40649d 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2161,6 +2161,7 @@ int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size,
                 pc->frame_start_found = 4;
             }
             if (state == SEQ_END_CODE) {
+                pc->frame_start_found = 0;
                 pc->state=-1;
                 return i+1;
             }



More information about the ffmpeg-cvslog mailing list