diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2015-10-11 17:11:02 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2015-10-12 22:16:12 +0200 |
commit | 6eaf97c2894ddd8031d1cbcf1061a84920e93a91 (patch) | |
tree | 5728de2eecc340421216278808c1ee36f1edb5b1 /libavformat | |
parent | a96dbdc14f3db1374f231ede58a6ae6e3211d265 (diff) | |
download | ffmpeg-6eaf97c2894ddd8031d1cbcf1061a84920e93a91.tar.gz |
avformat/webvttdec: Don't stop parsing on comments
Signed-off-by: Ricardo Constantino <wiiaboo@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/webvttdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |