summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMia Herkt <mia@0x0.st>2021-01-18 14:43:01 +0100
committerMia Herkt <mia@0x0.st>2021-01-19 13:10:58 +0100
commit8753bd019844ca88da480a49cf66792ee058e26d (patch)
tree562f2646ae2c78f9ae8bb4ccd89832a89cd78015
parenta3e440c611462cd75a59ab3ef665a930a0097be0 (diff)
downloadmpv-8753bd019844ca88da480a49cf66792ee058e26d.tar.bz2
mpv-8753bd019844ca88da480a49cf66792ee058e26d.tar.xz
stream_lavf: support rtsps
Fixes #8480
-rw-r--r--stream/stream_lavf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c
index e95dbc0b43..1c7fd35ae2 100644
--- a/stream/stream_lavf.c
+++ b/stream/stream_lavf.c
@@ -270,7 +270,7 @@ static int open_f(stream_t *stream)
for (int i = 0; i < sizeof(prefix) / sizeof(prefix[0]); i++)
if (!strncmp(filename, prefix[i], 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
* stream layer. demux_lavf will do all the real work. Note
* that libavformat doesn't even provide a protocol entry for
@@ -411,9 +411,9 @@ const stream_info_t stream_info_ffmpeg = {
.name = "ffmpeg",
.open = open_f,
.protocols = (const char *const[]){
- "rtmp", "rtsp", "http", "https", "mms", "mmst", "mmsh", "mmshttp", "rtp",
- "httpproxy", "rtmpe", "rtmps", "rtmpt", "rtmpte", "rtmpts", "srt", "srtp",
- "gopher", "data",
+ "rtmp", "rtsp", "rtsps", "http", "https", "mms", "mmst", "mmsh", "mmshttp",
+ "rtp", "httpproxy", "rtmpe", "rtmps", "rtmpt", "rtmpte", "rtmpts", "srt",
+ "srtp", "gopher", "data",
NULL },
.can_write = true,
.stream_origin = STREAM_ORIGIN_NET,