ffmpeg | branch: master | softworkz <softwo...@hotmail.com> | Fri Feb 21 
15:13:22 2025 +0000| [e0aedeb72e05ae8201d16b64b8ed18be22f57a17] | committer: 
Michael Niedermayer

avformat/webvttdec: Add webvtt extension and MIME type

The webvtt extension is sometimes used in HLS playlists.

Signed-off-by: softworkz <softwo...@hotmail.com>
Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e0aedeb72e05ae8201d16b64b8ed18be22f57a17
---

 libavformat/webvttdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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,

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to