From: Hendrik Leppkes Date: Sun, 29 Apr 2012 16:33:40 +0000 (+0000) Subject: mpeg12: fixed parsing in some mpeg2 streams X-Git-Tag: v9_beta1~1877 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d4a01474d54a4d3bb59dc94d285334f7bcbd889;p=platform%2Fupstream%2Flibav.git mpeg12: fixed parsing in some mpeg2 streams Signed-off-by: Michael Niedermayer Signed-off-by: Derek Buitenhuis --- diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 40ba97b0d..c40649d92 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; }