aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/webvttdec.c
diff options
context:
space:
mode:
authorsoftworkz <softworkz@hotmail.com>2025-02-21 15:13:22 +0000
committerMichael Niedermayer <michael@niedermayer.cc>2025-03-14 02:03:59 +0100
commite0aedeb72e05ae8201d16b64b8ed18be22f57a17 (patch)
tree63ad989e054cfa4301536b8af54448973741cf62 /libavformat/webvttdec.c
parent0978fea7fa78782377c8b537969f4df1773d82ac (diff)
downloadffmpeg-e0aedeb72e05ae8201d16b64b8ed18be22f57a17.tar.gz
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>
Diffstat (limited to 'libavformat/webvttdec.c')
-rw-r--r--libavformat/webvttdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
index 6e60348764..6feda1585e 100644
--- a/libavformat/webvttdec.c
+++ b/libavformat/webvttdec.c
@@ -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,