aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-14 20:49:33 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-14 20:49:33 +0000
commite47cbea883edce5722b81cd4ebd0b96d79c64a6a (patch)
tree8a18fb85c71bb0df0ae3524601903c190f8ad2e8
parent8382c6c3b952a06f5c642061ad71f0d15efa2f50 (diff)
Fix offset calculation for signed linear (bug #4433)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@5912 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xformats/format_sln.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/formats/format_sln.c b/formats/format_sln.c
index 7e77876b2..224054775 100755
--- a/formats/format_sln.c
+++ b/formats/format_sln.c
@@ -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)