mpeg12: fixed parsing in some mpeg2 streams
authorHendrik Leppkes <h.leppkes@gmail.com>
Fri, 20 Jan 2012 15:46:58 +0000 (16:46 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Jan 2012 13:42:53 +0000 (14:42 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpeg12.c

index e83c35c..d34b54d 100644 (file)
@@ -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;
             }