From 378b7beff55ced231e43b6892f1e6ad5146dcafd Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 20 Jan 2012 16:46:58 +0100 Subject: [PATCH] mpeg12: fixed parsing in some mpeg2 streams Signed-off-by: Michael Niedermayer --- libavcodec/mpeg12.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index e83c35c7ec..d34b54d76c 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; }