X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwtvdec.c;h=3ac45013066b6309eb6f812d8bcc6a2b2acfa73b;hb=1f8e1c209db2ec098edd7880a4ac88864615d674;hp=bd32d70dcf343c7cd8b7a966a7db33533ff3279d;hpb=2c138b2c9b0ec92d9baf704498b1a32a989d03c5;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++; }