avformat/microdvddec: skip empty lines
authorPaul B Mahol <onemda@gmail.com>
Sat, 27 Apr 2019 10:47:39 +0000 (12:47 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sat, 27 Apr 2019 10:57:18 +0000 (12:57 +0200)
libavformat/microdvddec.c

index ef6bcfb..ca9086a 100644 (file)
@@ -102,6 +102,8 @@ static int microdvd_read_header(AVFormatContext *s)
         if (!len)
             break;
         line[strcspn(line, "\r\n")] = 0;
+        if (!*p)
+            continue;
         if (i++ < 3) {
             int frame;
             double fps;