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

avformat/hls: .ts is always ok even if its a mov/mp4

Maybe fixes: 11435

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2025-01-28 13:26:34 +01:00
parent 9b5a4c0aea
commit 9e12572933

View File

@ -754,6 +754,10 @@ static int test_segment(AVFormatContext *s, const AVInputFormat *in_fmt, struct
if (in_fmt->extensions) {
matchF = av_match_ext( seg->url, in_fmt->extensions)
+ 2*(ff_match_url_ext(seg->url, in_fmt->extensions) > 0);
if(av_match_name("mp4", in_fmt->name)) {
matchF |= av_match_ext( seg->url, "ts")
+ 2*(ff_match_url_ext(seg->url, "ts") > 0);
}
} else if (!strcmp(in_fmt->name, "mpegts"))
matchF = 3;