From c5a2a65e1e923f0bcb39625ac121c5eb643cf93f Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Tue, 21 Jan 2014 01:18:15 +0100 Subject: [PATCH] lavf/libssh: fix seek with whence==SEEK_CUR Signed-off-by: Lukasz Marek (cherry picked from commit e0d124a9209f44a34e812fb26ba581552b55a731) Conflicts: libavformat/libssh.c --- libavformat/libssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/libssh.c b/libavformat/libssh.c index 4a9b8674cf..5d5b91ff80 100644 --- a/libavformat/libssh.c +++ b/libavformat/libssh.c @@ -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;