From e0d124a9209f44a34e812fb26ba581552b55a731 Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Tue, 21 Jan 2014 01:18:15 +0100 Subject: lavf/libssh: fix seek with whence==SEEK_CUR Signed-off-by: Lukasz Marek --- libavformat/libssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/libssh.c') diff --git a/libavformat/libssh.c b/libavformat/libssh.c index 8a464cd26e..d513df2cdb 100644 --- a/libavformat/libssh.c +++ b/libavformat/libssh.c @@ -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; -- cgit v1.2.3