avformat/vfq: fix deadlock in vqf_read_header()
authorPaul B Mahol <onemda@gmail.com>
Sat, 28 Sep 2013 15:36:54 +0000 (15:36 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sat, 28 Sep 2013 15:36:54 +0000 (15:36 +0000)
Fixes #3010.
Reported-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/vqf.c

index 1ce5359..83ec1be 100644 (file)
@@ -163,7 +163,7 @@ static int vqf_read_header(AVFormatContext *s)
 
         header_size -= len;
 
-    } while (header_size >= 0);
+    } while (header_size >= 0 && !url_feof(s->pb));
 
     switch (rate_flag) {
     case -1: