History

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

Maybe fixes: 11435

Michael Niedermayer committed 1 year ago

Commit 9e125721 parent 9b5a4c01 file · +4 −0Browse files

Unified · Split

libavformat/hls.c+4−0
@@ -754,6 +754,10 @@ static int test_segment(AVFormatContext *s, const AVInputFormat *in_fmt, struct · 753 unmodified lines
754754 if (in_fmt->extensions) {
755755 matchF = av_match_ext( seg->url, in_fmt->extensions)
756756 + 2*(ff_match_url_ext(seg->url, in_fmt->extensions) > 0);
757+ if(av_match_name("mp4", in_fmt->name)) {
758+ matchF |= av_match_ext( seg->url, "ts")
759+ + 2*(ff_match_url_ext(seg->url, "ts") > 0);
760+ }
757761 } else if (!strcmp(in_fmt->name, "mpegts"))
758762 matchF = 3;
759763

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