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

Hendrik Leppkes git at videolan.org
Sun Jan 22 16:06:09 CET 2012


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Jan 20 16:46:58 2012 +0100| [378b7beff55ced231e43b6892f1e6ad5146dcafd] | committer: Michael Niedermayer

mpeg12: fixed parsing in some mpeg2 streams

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

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

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

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index e83c35c..d34b54d 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2216,6 +2216,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