[FFmpeg-cvslog] lavf/libssh: fix seek with whence==SEEK_CUR

Lukasz Marek git at videolan.org
Wed Jan 22 01:35:28 CET 2014


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki at gmail.com> | Tue Jan 21 01:18:15 2014 +0100| [e0d124a9209f44a34e812fb26ba581552b55a731] | committer: Lukasz Marek

lavf/libssh: fix seek with whence==SEEK_CUR

Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e0d124a9209f44a34e812fb26ba581552b55a731
---

 libavformat/libssh.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/libssh.c b/libavformat/libssh.c
index 8a464cd..d513df2 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;



More information about the ffmpeg-cvslog mailing list