]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix offset calculation for signed linear (bug #4433)
authorRussell Bryant <russell@russellbryant.com>
Tue, 14 Jun 2005 20:49:33 +0000 (20:49 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 14 Jun 2005 20:49:33 +0000 (20:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5912 65c4cc65-6c06-0410-ace0-fbb531ad65f3

formats/format_sln.c

index 7e77876b27b976ac3aa07e5f71a50cb1f29118b1..224054775b1ab25c49317f7c2aae47e52596de4e 100755 (executable)
@@ -160,6 +160,7 @@ static int slinear_seek(struct ast_filestream *fs, long sample_offset, int whenc
        off_t offset=0,min,cur,max;
 
        min = 0;
+       sample_offset <<= 1;
        cur = lseek(fs->fd, 0, SEEK_CUR);
        max = lseek(fs->fd, 0, SEEK_END);
        if (whence == SEEK_SET)