X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmpeg12.c;h=3128e8d1e3fbd1430aadb6ade811958b58593e82;hb=77140279d33006f1d949ee3717af67204dc519c6;hp=fc43a53701139d86fefeadc6877d9f7725767fd0;hpb=4009ee3eccac686ee2f01837cc8877012c47314c;p=ffmpeg diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index fc43a537011..3128e8d1e3f 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -234,7 +234,7 @@ int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size, } } if (pc->frame_start_found == 0 && s && state == PICTURE_START_CODE) { - ff_fetch_timestamp(s, i - 3, 1); + ff_fetch_timestamp(s, i - 3, 1, i > 3); } } }