[FFmpeg-devel] [PATCH 2/3] avformat/webvttdec: Don't stop parsing on comments

Ricardo Constantino wiiaboo at gmail.com
Sun Oct 11 18:11:02 CEST 2015


Signed-off-by: Ricardo Constantino <wiiaboo at gmail.com>
---
 libavformat/webvttdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
index 43c2a63..47a3255 100644
--- a/libavformat/webvttdec.c
+++ b/libavformat/webvttdec.c
@@ -92,7 +92,8 @@ static int webvtt_read_header(AVFormatContext *s)
 
         /* ignore header chunk */
         if (!strncmp(p, "\xEF\xBB\xBFWEBVTT", 9) ||
-            !strncmp(p, "WEBVTT", 6))
+            !strncmp(p, "WEBVTT", 6) ||
+            !strncmp(p, "NOTE", 4))
             continue;
 
         /* optional cue identifier (can be a number like in SRT or some kind of
-- 
2.6.0



More information about the ffmpeg-devel mailing list