1
0
Fork 0

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>
This commit is contained in:
Kristoffer Brånemyr 2024-02-26 18:05:38 +01:00 committed by Marton Balint
parent 41ab25cb2d
commit 51d303e20c
1 changed files with 2 additions and 0 deletions

View File

@ -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;