forked from FFmpeg/FFmpeg
lavf/libssh: fix seek with whence==SEEK_CUR
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
This commit is contained in:
parent
b271aac536
commit
e0d124a920
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue