Skip to content

Commit 51d303e

Browse files
ztioncus
authored andcommitted
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>
1 parent 41ab25c commit 51d303e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libavformat/webvttdec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ static int webvtt_read_header(AVFormatContext *s)
9595
/* ignore header chunk */
9696
if (!strncmp(p, "\xEF\xBB\xBFWEBVTT", 9) ||
9797
!strncmp(p, "WEBVTT", 6) ||
98+
!strncmp(p, "STYLE", 5) ||
99+
!strncmp(p, "REGION", 6) ||
98100
!strncmp(p, "NOTE", 4))
99101
continue;
100102

0 commit comments

Comments
 (0)