diff options
author | Mark Spencer <markster@digium.com> | 2005-06-02 17:54:09 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-06-02 17:54:09 +0000 |
commit | 2d765292793639471b70ac5964a49e83657f2d80 (patch) | |
tree | eb0fce95fdd654116803a4b4d9ae66f309ce00bb /formats/format_sln.c | |
parent | c01873574a5e8cfa6cf9022c2df7eda188c8db7c (diff) |
Fix offset calculation for signed linear (bug #4433)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats/format_sln.c')
-rwxr-xr-x | formats/format_sln.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/formats/format_sln.c b/formats/format_sln.c index d5c562a01..0ae19af67 100755 --- a/formats/format_sln.c +++ b/formats/format_sln.c @@ -156,6 +156,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) |