[Asterisk-cvs] asterisk/formats format_sln.c,1.1,1.1.2.1

russell at lists.digium.com russell at lists.digium.com
Tue Jun 14 16:48:00 CDT 2005


Update of /usr/cvsroot/asterisk/formats
In directory mongoose.digium.com:/tmp/cvs-serv12832/formats

Modified Files:
      Tag: v1-0
	format_sln.c 
Log Message:
Fix offset calculation for signed linear (bug #4433)


Index: format_sln.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_sln.c,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -d -r1.1 -r1.1.2.1
--- format_sln.c	5 Sep 2004 18:00:55 -0000	1.1
+++ format_sln.c	14 Jun 2005 20:49:33 -0000	1.1.2.1
@@ -160,6 +160,7 @@
 	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)




More information about the svn-commits mailing list