diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-01-21 04:18:15 +0400 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-01-22 03:41:13 +0400 |
commit | e0d124a9209f44a34e812fb26ba581552b55a731 (patch) | |
tree | 8bc61e45a6392657e222f59af7ce4d3378108b24 /libavformat/libssh.c | |
parent | b271aac5360207253f74a990d0e279317917a02f (diff) |
lavf/libssh: fix seek with whence==SEEK_CUR
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavformat/libssh.c')
-rw-r--r-- | libavformat/libssh.c | 2 |
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; |