X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwtvdec.c;h=3ac45013066b6309eb6f812d8bcc6a2b2acfa73b;hb=2dee500f4cbf64c547a37046e95141b84c85ee55;hp=bd32d70dcf343c7cd8b7a966a7db33533ff3279d;hpb=5565e271116215a968eec2ac260b91ebe1768f0f;p=ffmpeg diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index bd32d70dcf3..3ac45013066 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -1031,7 +1031,7 @@ static int read_header(AVFormatContext *s) while (1) { uint64_t frame_nb = avio_rl64(pb); uint64_t position = avio_rl64(pb); - while (frame_nb > e->size && e <= e_end) { + while (e <= e_end && frame_nb > e->size) { e->pos = last_position; e++; }