From 6eaf97c2894ddd8031d1cbcf1061a84920e93a91 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Sun, 11 Oct 2015 17:11:02 +0100 Subject: avformat/webvttdec: Don't stop parsing on comments Signed-off-by: Ricardo Constantino --- libavformat/webvttdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c index 43c2a639ad..47a3255fd0 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 -- cgit v1.2.3