History

avformat/webvttdec: Add webvtt extension and MIME type

The webvtt extension is sometimes used in HLS playlists.

softworkz committed 1 year ago

Commit e0aedeb1 parent 0978fea1 file · +2 −1Browse files

Unified · Split

libavformat/webvttdec.c+2−1
@@ -216,7 +216,8 @@ static const AVClass webvtt_demuxer_class = { · 215 unmodified lines
216216 const FFInputFormat ff_webvtt_demuxer = {
217217 .p.name = "webvtt",
218218 .p.long_name = NULL_IF_CONFIG_SMALL("WebVTT subtitle"),
219− .p.extensions = "vtt",
219+ .p.mime_type = "text/vtt",
220+ .p.extensions = "vtt,webvtt",
220221 .p.priv_class = &webvtt_demuxer_class,
221222 .priv_data_size = sizeof(WebVTTContext),
222223 .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t