diff options
author | Kristoffer Brånemyr <ztion1@yahoo.se> | 2024-02-26 18:05:38 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2024-03-12 23:01:46 +0100 |
commit | 51d303e20cbb0874172f50b5172c515a973587d4 (patch) | |
tree | 80dc4e909f721b268c2e8c2224455111c5a98cd2 | |
parent | 41ab25cb2d589e2aef18f3ea3ff3f7b2533c4f7b (diff) | |
download | ffmpeg-51d303e20cbb0874172f50b5172c515a973587d4.tar.gz |
avformat/webvttdec: Skip more parts of header to let parsing continue
Signed-off-by: Kristoffer Brånemyr <ztion1@yahoo.se>
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/webvttdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |