ffmpeg | branch: release/4.4 | Michael Niedermayer <mich...@niedermayer.cc> | Wed Apr 30 01:05:18 2025 +0200| [d2d823205655536a165eef0dfaf13e2e212ff180] | committer: Michael Niedermayer
avformat/hls: Fix flash1.bogulus.cfd support Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> (cherry picked from commit 75be669ca1c986cc3510a5ad847e82785e2682e0) Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d2d823205655536a165eef0dfaf13e2e212ff180 --- libavformat/hls.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 4504f3951c..d22d06c5ae 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -739,8 +739,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); } } else if (!strcmp(in_fmt->name, "mpegts")) { - matchF = av_match_ext( seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts") - + 2*(ff_match_url_ext(seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts") > 0); + const char *str = "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts" + ",html" // https://flash1.bogulus.cfd/ + ; + matchF = av_match_ext( seg->url, str) + + 2*(ff_match_url_ext(seg->url, str) > 0); } if (!(matchA & matchF)) { @@ -2462,6 +2465,7 @@ static const AVOption hls_options[] = { ",cmfv,cmfa" // Ticket11526 www.nicovideo.jp ",ec3" // part of Ticket11435 (Elisa Viihde (Finnish online recording service)) ",fmp4" // https://github.com/yt-dlp/yt-dlp/issues/12700 + ",html" // https://flash1.bogulus.cfd/ }, INT_MIN, INT_MAX, FLAGS}, {"extension_picky", "Be picky with all extensions matching", _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".