diff options
author | Marth64 <marth64@proxyid.net> | 2024-11-20 01:35:18 -0600 |
---|---|---|
committer | Marth64 <marth64@proxyid.net> | 2024-11-26 19:50:49 -0600 |
commit | 084d3515cabf1f7141e8789f21db534b304a47cc (patch) | |
tree | de6c647a3bf9848fa028e281458bc792eb775ab9 /libavformat | |
parent | d4966f0a7484afb71239690d3591cb4d18af4557 (diff) | |
download | ffmpeg-084d3515cabf1f7141e8789f21db534b304a47cc.tar.gz |
avformat/libssh: fix credential variables typo
Signed-off-by: Marth64 <marth64@proxyid.net>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/libssh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/libssh.c b/libavformat/libssh.c index 5c062a7245..523b79befe 100644 --- a/libavformat/libssh.c +++ b/libavformat/libssh.c @@ -190,13 +190,13 @@ static av_cold int libssh_close(URLContext *h) static av_cold int libssh_connect(URLContext *h, const char *url, char *path, size_t path_size) { LIBSSHContext *libssh = h->priv_data; - char proto[10], hostname[1024], credencials[1024]; + char proto[10], hostname[1024], credentials[1024]; int port = 22, ret; const char *user = NULL, *pass = NULL; char *end = NULL; av_url_split(proto, sizeof(proto), - credencials, sizeof(credencials), + credentials, sizeof(credentials), hostname, sizeof(hostname), &port, path, path_size, @@ -212,7 +212,7 @@ static av_cold int libssh_connect(URLContext *h, const char *url, char *path, si if ((ret = libssh_create_ssh_session(libssh, hostname, port)) < 0) return ret; - user = av_strtok(credencials, ":", &end); + user = av_strtok(credentials, ":", &end); pass = av_strtok(end, ":", &end); if ((ret = libssh_authentication(libssh, user, pass)) < 0) |