mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavf/libssh: read empty path from url as /
Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e96f0a692b
commit
0cce94fb10
@ -204,6 +204,9 @@ static av_cold int libssh_connect(URLContext *h, const char *url, char *path, si
|
||||
path, path_size,
|
||||
url);
|
||||
|
||||
if (!(*path))
|
||||
av_strlcpy(path, "/", path_size);
|
||||
|
||||
// a port of 0 will use a port from ~/.ssh/config or the default value 22
|
||||
if (port < 0 || port > 65535)
|
||||
port = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user