stream_lavf: support rtsps

Fixes #8480
This commit is contained in:
Mia Herkt 2021-01-18 14:43:01 +01:00
parent a3e440c611
commit 8753bd0198
No known key found for this signature in database
GPG Key ID: 72E154B8622EC191
1 changed files with 4 additions and 4 deletions

View File

@ -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,