[FFmpeg-cvslog] avformat/webvttdec: Skip more parts of header to let parsing continue

Kristoffer Brånemyr git at videolan.org
Wed Mar 13 00:17:54 EET 2024


ffmpeg | branch: master | Kristoffer Brånemyr <ztion1 at yahoo.se> | Mon Feb 26 18:05:38 2024 +0100| [51d303e20cbb0874172f50b5172c515a973587d4] | committer: Marton Balint

avformat/webvttdec: Skip more parts of header to let parsing continue

Signed-off-by: Kristoffer Brånemyr <ztion1 at yahoo.se>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=51d303e20cbb0874172f50b5172c515a973587d4
---

 libavformat/webvttdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
index 2720f651d6..56fc0f5167 100644
--- a/libavformat/webvttdec.c
+++ b/libavformat/webvttdec.c
@@ -95,6 +95,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;
 



More information about the ffmpeg-cvslog mailing list