[Asterisk-cvs] asterisk/formats format_wav_gsm.c,1.21,1.22

markster at lists.digium.com markster at lists.digium.com
Tue Aug 3 20:56:48 CDT 2004


Update of /usr/cvsroot/asterisk/formats
In directory localhost.localdomain:/tmp/cvs-serv8534/formats

Modified Files:
	format_wav_gsm.c 
Log Message:
Fix "tell" for wav (bug #2212)


Index: format_wav_gsm.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_wav_gsm.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- format_wav_gsm.c	22 Jun 2004 18:49:00 -0000	1.21
+++ format_wav_gsm.c	4 Aug 2004 00:42:49 -0000	1.22
@@ -520,7 +520,7 @@
 	offset = lseek(fs->fd, 0, SEEK_CUR);
 	/* since this will most likely be used later in play or record, lets stick
 	 * to that level of resolution, just even frames boundaries */
-	return (offset - 52)/65/320;
+	return (offset - 52)/65*320;
 }
 
 static char *wav_getcomment(struct ast_filestream *s)




More information about the svn-commits mailing list