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:
Lukasz Marek 2014-01-21 01:18:15 +01:00 committed by Michael Niedermayer
parent a8ed3685e1
commit c5a2a65e1e
1 changed files with 1 additions and 1 deletions

View File

@ -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;