[FFmpeg-cvslog] avformat/microdvddec: skip empty lines

Paul B Mahol git at videolan.org
Sat Apr 27 13:59:46 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Apr 27 12:47:39 2019 +0200| [163bb087f81d1cda9c29b83d9f14a376a6996f81] | committer: Paul B Mahol

avformat/microdvddec: skip empty lines

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=163bb087f81d1cda9c29b83d9f14a376a6996f81
---

 libavformat/microdvddec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/microdvddec.c b/libavformat/microdvddec.c
index ef6bcfbc73..ca9086afe9 100644
--- a/libavformat/microdvddec.c
+++ b/libavformat/microdvddec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list