X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmpeg12.c;h=c40649d92c3380285c2e1f8c8de2ba54f19ee396;hb=34ca5ae51d7d411a5a891521a79c1284e046bf2f;hp=40ba97b0d0b8dc0138aa7db3382a12faec8435b3;hpb=2bcbd98459915baefc15043d02f4a942ebcd33da;p=ffmpeg diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 40ba97b0d0b..c40649d92c3 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; }