1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-05-29 21:47:48 +02:00

avformat/webvttdec: Add webvtt extension and MIME type

The webvtt extension is sometimes used in HLS playlists.

Signed-off-by: softworkz <softworkz@hotmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
softworkz 2025-02-21 15:13:22 +00:00 committed by Michael Niedermayer
parent 0978fea7fa
commit e0aedeb72e
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -216,7 +216,8 @@ static const AVClass webvtt_demuxer_class = {
const FFInputFormat ff_webvtt_demuxer = {
.p.name = "webvtt",
.p.long_name = NULL_IF_CONFIG_SMALL("WebVTT subtitle"),
.p.extensions = "vtt",
.p.mime_type = "text/vtt",
.p.extensions = "vtt,webvtt",
.p.priv_class = &webvtt_demuxer_class,
.priv_data_size = sizeof(WebVTTContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,