From 416d9ae6a57887de0641b9b7ef6a353d95ae7e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Br=C3=A5nemyr?= Date: Mon, 26 Feb 2024 18:05:38 +0100 Subject: [PATCH] avformat/webvttdec: Skip more parts of header to let parsing continue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristoffer Brånemyr --- libavformat/webvttdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c index fbe7ce316c..3665c9086b 100644 --- a/libavformat/webvttdec.c +++ b/libavformat/webvttdec.c @@ -94,6 +94,8 @@ static int webvtt_read_header(AVFormatContext *s) /* ignore header chunk */ if (!strncmp(p, "\xEF\xBB\xBFWEBVTT", 9) || !strncmp(p, "WEBVTT", 6) || + !strncmp(p, "STYLE", 5) || + !strncmp(p, "REGION", 6) || !strncmp(p, "NOTE", 4)) continue; -- 2.36.1