Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/webvttdec: Add webvtt extension and MIME type
Date: Tue, 25 Feb 2025 02:03:45 +0100
Message-ID: <20250225010345.GA4991@pb2> (raw)
In-Reply-To: <7550e41042a5546c6ff1f6a75be714165c6d4230.1740150802.git.ffmpegagent@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1392 bytes --]

On Fri, Feb 21, 2025 at 03:13:22PM +0000, softworkz wrote:
> 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,

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.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
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".

  reply	other threads:[~2025-02-25  1:03 UTC|newest]

Thread overview: 11+ 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 ` [FFmpeg-devel] [PATCH 2/2] avformat/webvttdec: Add webvtt extension and MIME type softworkz
2025-02-21 15:13 ` [FFmpeg-devel] [PATCH v2 0/2] avformat/hls demuxer: Add WebVTT subtitle support 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
2025-02-25  1:03     ` Michael Niedermayer [this message]
2025-02-25  1:11       ` Soft Works

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=20250225010345.GA4991@pb2 \
    --to=michael@niedermayer.cc \
    --cc=ffmpeg-devel@ffmpeg.org \
    /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