From 8753bd019844ca88da480a49cf66792ee058e26d Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Mon, 18 Jan 2021 14:43:01 +0100 Subject: stream_lavf: support rtsps Fixes #8480 --- stream/stream_lavf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stream/stream_lavf.c') 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, -- cgit v1.2.3