1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avformat/hls: Fix flash1.bogulus.cfd support

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2025-04-30 01:05:18 +02:00
parent f99f223eb1
commit 75be669ca1

View File

@ -760,8 +760,11 @@ static int test_segment(AVFormatContext *s, const AVInputFormat *in_fmt, struct
+ 2*(ff_match_url_ext(seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts") > 0); + 2*(ff_match_url_ext(seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts") > 0);
} }
} else if (!strcmp(in_fmt->name, "mpegts")) { } else if (!strcmp(in_fmt->name, "mpegts")) {
matchF = av_match_ext( seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts") const char *str = "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts"
+ 2*(ff_match_url_ext(seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts") > 0); ",html" // https://flash1.bogulus.cfd/
;
matchF = av_match_ext( seg->url, str)
+ 2*(ff_match_url_ext(seg->url, str) > 0);
} else if (!strcmp(in_fmt->name, "webvtt")) { } else if (!strcmp(in_fmt->name, "webvtt")) {
matchF = av_match_ext( seg->url, "vtt,webvtt") matchF = av_match_ext( seg->url, "vtt,webvtt")
+ 2*(ff_match_url_ext(seg->url, "vtt,webvtt") > 0); + 2*(ff_match_url_ext(seg->url, "vtt,webvtt") > 0);
@ -2781,6 +2784,7 @@ static const AVOption hls_options[] = {
",cmfv,cmfa" // Ticket11526 www.nicovideo.jp ",cmfv,cmfa" // Ticket11526 www.nicovideo.jp
",ec3" // part of Ticket11435 (Elisa Viihde (Finnish online recording service)) ",ec3" // part of Ticket11435 (Elisa Viihde (Finnish online recording service))
",fmp4" // https://github.com/yt-dlp/yt-dlp/issues/12700 ",fmp4" // https://github.com/yt-dlp/yt-dlp/issues/12700
",html" // https://flash1.bogulus.cfd/
}, },
INT_MIN, INT_MAX, FLAGS}, INT_MIN, INT_MAX, FLAGS},
{"extension_picky", "Be picky with all extensions matching", {"extension_picky", "Be picky with all extensions matching",