]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/wtvdec.c
avformat/http: Fix #ifdef FF_API_HTTP_USER_AGENT
[ffmpeg] / libavformat / wtvdec.c
index bd32d70dcf343c7cd8b7a966a7db33533ff3279d..3ac45013066b6309eb6f812d8bcc6a2b2acfa73b 100644 (file)
@@ -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++;
                         }