avformat/hls: Fix twitter
Allow mp4 with all mpegts extensions
Fixes: Ticket11435
Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit cef3422b48)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4d00981ce7
commit
f28eeabd03
1 changed files with 2 additions and 2 deletions
|
|
@ -754,8 +754,8 @@ static int test_segment(AVFormatContext *s, const AVInputFormat *in_fmt, struct
|
|||
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);
|
||||
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);
|
||||
}
|
||||
} else if (!strcmp(in_fmt->name, "mpegts")) {
|
||||
matchF = av_match_ext( seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue