Skip to content

Commit

Permalink
avformat/webvttdec: Skip more parts of header to let parsing continue
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Brånemyr <ztion1@yahoo.se>
Signed-off-by: Marton Balint <cus@passwd.hu>
  • Loading branch information
ztion authored and cus committed Mar 12, 2024
1 parent 41ab25c commit 51d303e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavformat/webvttdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 51d303e

Please sign in to comment.