Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: softworkz <ffmpegagent@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Cc: softworkz <softworkz@hotmail.com>
Subject: [FFmpeg-devel] [PATCH 2/2] avformat/webvttdec: Add webvtt extension and MIME type
Date: Wed, 19 Feb 2025 14:10:27 +0000
Message-ID: <aff0dd2be29aa3db78e1418f9ef5fca25cddeb97.1739974227.git.ffmpegagent@gmail.com> (raw)
In-Reply-To: <pull.53.ffstaging.FFmpeg.1739974227.ffmpegagent@gmail.com>

From: softworkz <softworkz@hotmail.com>

The webvtt extension is sometimes used in HLS playlists.

Signed-off-by: softworkz <softworkz@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,
-- 
ffmpeg-codebot
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

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

  parent reply	other threads:[~2025-02-19 14:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-19 14:10 [FFmpeg-devel] [PATCH 0/2] avformat/hls demuxer: Add WebVTT subtitle support ffmpegagent
2025-02-19 14:10 ` [FFmpeg-devel] [PATCH 1/2] " softworkz
2025-02-21  9:18   ` Andreas Rheinhardt
2025-02-21  9:23     ` Soft Works
2025-02-21 11:56     ` Soft Works
2025-02-19 14:10 ` softworkz [this message]
2025-02-21 15:13 ` [FFmpeg-devel] [PATCH v2 0/2] " ffmpegagent
2025-02-21 15:13   ` [FFmpeg-devel] [PATCH v2 1/2] " softworkz
2025-02-21 15:13   ` [FFmpeg-devel] [PATCH v2 2/2] avformat/webvttdec: Add webvtt extension and MIME type softworkz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aff0dd2be29aa3db78e1418f9ef5fca25cddeb97.1739974227.git.ffmpegagent@gmail.com \
    --to=ffmpegagent@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    --cc=softworkz@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git