Re: [FFmpeg-devel] [PATCH 2/3] lavf/libssh: read empty path from url as /
On Tue, Jun 23, 2015 at 03:04:20AM +0200, Mariusz SzczepaĆczyk wrote: --- libavformat/libssh.c | 3 +++ 1 file changed, 3 insertions(+) applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you think the mosad wants you dead since a long time then you are either wrong or dead since a long time. signature.asc Description: Digital signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] [PATCH 2/3] lavf/libssh: read empty path from url as /
--- libavformat/libssh.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/libssh.c b/libavformat/libssh.c index 150c037..ee8fd7e 100644 --- a/libavformat/libssh.c +++ b/libavformat/libssh.c @@ -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; -- 2.3.6 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel