ffmpeg | branch: master | Kristoffer Brånemyr <zti...@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 <zti...@yahoo.se>
Signed-off-by: Marton Balint <c...@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;
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to