mirror of https://git.ffmpeg.org/ffmpeg.git
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:
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;
|
||||
|
|
Loading…
Reference in New Issue