mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 01:40:04 +01:00
lavf/libssh: fix seek with whence==SEEK_CUR
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
(cherry picked from commit e0d124a920)
Conflicts:
libavformat/libssh.c
This commit is contained in:
committed by
Michael Niedermayer
parent
a8ed3685e1
commit
c5a2a65e1e
@@ -159,7 +159,7 @@ static int64_t libssh_seek(URLContext *h, int64_t pos, int whence)
|
||||
newpos = pos;
|
||||
break;
|
||||
case SEEK_CUR:
|
||||
newpos = sftp_tell64(s->file);
|
||||
newpos = sftp_tell64(s->file) + pos;
|
||||
break;
|
||||
case SEEK_END:
|
||||
newpos = s->filesize + pos;
|
||||
|
||||
Reference in New Issue
Block a user