Commit e0d124a9 authored by Lukasz Marek's avatar Lukasz Marek

lavf/libssh: fix seek with whence==SEEK_CUR

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki@gmail.com>
parent b271aac5
......@@ -233,7 +233,7 @@ static int64_t libssh_seek(URLContext *h, int64_t pos, int whence)
newpos = pos;
break;
case SEEK_CUR:
newpos = sftp_tell64(libssh->file);
newpos = sftp_tell64(libssh->file) + pos;
break;
case SEEK_END:
newpos = libssh->filesize + pos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment