aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki@gmail.com>2014-01-21 01:18:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-22 01:36:31 +0100
commitc5a2a65e1e923f0bcb39625ac121c5eb643cf93f (patch)
tree6a3ab0bf67c03af640aa53a90c6d81741d308458
parenta8ed3685e1931fda969e2ee601fa767845138d33 (diff)
downloadffmpeg-c5a2a65e1e923f0bcb39625ac121c5eb643cf93f.tar.gz
lavf/libssh: fix seek with whence==SEEK_CUR
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> (cherry picked from commit e0d124a9209f44a34e812fb26ba581552b55a731) Conflicts: libavformat/libssh.c
-rw-r--r--libavformat/libssh.c2
1 files changed, 1 insertions, 1 deletions
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;