[FFmpeg-devel] [PATCH] avformat/webvttdec: Ignore REGION and STYLE chunks

tpikonen at mailbox.org tpikonen at mailbox.org
Thu May 12 17:22:26 EEST 2022


Fixes trac ticket #8684.

Signed-off-by: Teemu Ikonen <tpikonen at mailbox.org>
---
 libavformat/webvttdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
index 52320ba7..49895b0a 100644
--- a/libavformat/webvttdec.c
+++ b/libavformat/webvttdec.c
@@ -92,6 +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, "REGION", 6) ||
+            !strncmp(p, "STYLE", 5) ||
             !strncmp(p, "NOTE", 4))
             continue;
 
-- 
2.35.1


More information about the ffmpeg-devel mailing list