aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki@gmail.com>2014-01-21 01:18:15 +0100
committerLukasz Marek <lukasz.m.luki@gmail.com>2014-01-22 00:41:13 +0100
commite0d124a9209f44a34e812fb26ba581552b55a731 (patch)
tree8bc61e45a6392657e222f59af7ce4d3378108b24 /libavformat
parentb271aac5360207253f74a990d0e279317917a02f (diff)
downloadffmpeg-e0d124a9209f44a34e812fb26ba581552b55a731.tar.gz
lavf/libssh: fix seek with whence==SEEK_CUR
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/libssh.c2
1 files changed, 1 insertions, 1 deletions
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;