[FFmpeg-devel] [PATCH v2 2/2] avformat/webvttdec: Add webvtt extension and MIME type
Michael Niedermayer
michael at niedermayer.cc
Tue Feb 25 03:03:45 EET 2025
On Fri, Feb 21, 2025 at 03:13:22PM +0000, softworkz wrote:
> From: softworkz <softworkz at hotmail.com>
>
> The webvtt extension is sometimes used in HLS playlists.
>
> Signed-off-by: softworkz <softworkz at hotmail.com>
> ---
> 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,
should be ok
maybe needs backporting
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If you drop bombs on a foreign country and kill a hundred thousand
innocent people, expect your government to call the consequence
"unprovoked inhuman terrorist attacks" and use it to justify dropping
more bombs and killing more people. The technology changed, the idea is old.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250225/15ed0316/attachment.sig>
More information about the ffmpeg-devel
mailing list