Skip to content

Commit e0aedeb

Browse files
softworkzmichaelni
authored andcommitted
avformat/webvttdec: Add webvtt extension and MIME type
The webvtt extension is sometimes used in HLS playlists. Signed-off-by: softworkz <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
1 parent 0978fea commit e0aedeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libavformat/webvttdec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ static const AVClass webvtt_demuxer_class = {
216216
const FFInputFormat ff_webvtt_demuxer = {
217217
.p.name = "webvtt",
218218
.p.long_name = NULL_IF_CONFIG_SMALL("WebVTT subtitle"),
219-
.p.extensions = "vtt",
219+
.p.mime_type = "text/vtt",
220+
.p.extensions = "vtt,webvtt",
220221
.p.priv_class = &webvtt_demuxer_class,
221222
.priv_data_size = sizeof(WebVTTContext),
222223
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,

0 commit comments

Comments
 (0)