1
mirror of https://github.com/mpv-player/mpv synced 2024-10-02 16:25:33 +02:00

stream_lavf: don't duplicate list of rtmp protocols

Assume a rtmp prefix means rtmp instead.
This commit is contained in:
wm4 2013-11-04 19:57:39 +01:00
parent 41fedab2d9
commit 859964e0db

View File

@ -219,9 +219,7 @@ 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]))) {
if (strncmp(filename, "rtmp", 4) == 0) {
stream->demuxer = "lavf";
stream->lavf_type = "flv";
}