mirror of
https://github.com/mpv-player/mpv
synced 2025-01-27 01:53:32 +00:00
stream_lavf: don't duplicate list of rtmp protocols
Assume a rtmp prefix means rtmp instead.
This commit is contained in:
parent
41fedab2d9
commit
859964e0db
@ -219,12 +219,10 @@ static int open_f(stream_t *stream, int mode)
|
||||
}
|
||||
}
|
||||
|
||||
char *rtmp[] = {"rtmp:", "rtmpt:", "rtmpe:", "rtmpte:", "rtmps:"};
|
||||
for (int i = 0; i < FF_ARRAY_ELEMS(rtmp); i++)
|
||||
if (!strncmp(filename, rtmp[i], strlen(rtmp[i]))) {
|
||||
stream->demuxer = "lavf";
|
||||
stream->lavf_type = "flv";
|
||||
}
|
||||
if (strncmp(filename, "rtmp", 4) == 0) {
|
||||
stream->demuxer = "lavf";
|
||||
stream->lavf_type = "flv";
|
||||
}
|
||||
stream->priv = avio;
|
||||
int64_t size = avio_size(avio);
|
||||
if (size >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user