mirror of https://github.com/mpv-player/mpv
parent
a3e440c611
commit
8753bd0198
|
@ -270,7 +270,7 @@ static int open_f(stream_t *stream)
|
||||||
for (int i = 0; i < sizeof(prefix) / sizeof(prefix[0]); i++)
|
for (int i = 0; i < sizeof(prefix) / sizeof(prefix[0]); i++)
|
||||||
if (!strncmp(filename, prefix[i], strlen(prefix[i])))
|
if (!strncmp(filename, prefix[i], strlen(prefix[i])))
|
||||||
filename += strlen(prefix[i]);
|
filename += strlen(prefix[i]);
|
||||||
if (!strncmp(filename, "rtsp:", 5)) {
|
if (!strncmp(filename, "rtsp:", 5) || !strncmp(filename, "rtsps:", 6)) {
|
||||||
/* This is handled as a special demuxer, without a separate
|
/* This is handled as a special demuxer, without a separate
|
||||||
* stream layer. demux_lavf will do all the real work. Note
|
* stream layer. demux_lavf will do all the real work. Note
|
||||||
* that libavformat doesn't even provide a protocol entry for
|
* that libavformat doesn't even provide a protocol entry for
|
||||||
|
@ -411,9 +411,9 @@ const stream_info_t stream_info_ffmpeg = {
|
||||||
.name = "ffmpeg",
|
.name = "ffmpeg",
|
||||||
.open = open_f,
|
.open = open_f,
|
||||||
.protocols = (const char *const[]){
|
.protocols = (const char *const[]){
|
||||||
"rtmp", "rtsp", "http", "https", "mms", "mmst", "mmsh", "mmshttp", "rtp",
|
"rtmp", "rtsp", "rtsps", "http", "https", "mms", "mmst", "mmsh", "mmshttp",
|
||||||
"httpproxy", "rtmpe", "rtmps", "rtmpt", "rtmpte", "rtmpts", "srt", "srtp",
|
"rtp", "httpproxy", "rtmpe", "rtmps", "rtmpt", "rtmpte", "rtmpts", "srt",
|
||||||
"gopher", "data",
|
"srtp", "gopher", "data",
|
||||||
NULL },
|
NULL },
|
||||||
.can_write = true,
|
.can_write = true,
|
||||||
.stream_origin = STREAM_ORIGIN_NET,
|
.stream_origin = STREAM_ORIGIN_NET,
|
||||||
|
|
Loading…
Reference in New Issue