[Asterisk-cvs] asterisk/formats format_wav_gsm.c,1.23,1.23.2.1
russell at lists.digium.com
russell at lists.digium.com
Sat Oct 9 12:31:28 CDT 2004
Update of /usr/cvsroot/asterisk/formats
In directory mongoose.digium.com:/tmp/cvs-serv31964/formats
Modified Files:
Tag: v1-0
format_wav_gsm.c
Log Message:
Fix wave file lengths (bug #2486)
Index: format_wav_gsm.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_wav_gsm.c,v
retrieving revision 1.23
retrieving revision 1.23.2.1
diff -u -d -r1.23 -r1.23.2.1
--- format_wav_gsm.c 2 Sep 2004 03:33:09 -0000 1.23
+++ format_wav_gsm.c 9 Oct 2004 16:32:21 -0000 1.23.2.1
@@ -219,7 +219,7 @@
end = lseek(fd, 0, SEEK_END);
/* in a gsm WAV, data starts 60 bytes in */
bytes = end - 60;
- datalen = htoll(bytes);
+ datalen = htoll((bytes + 1) & ~0x1);
filelen = htoll(52 + ((bytes + 1) & ~0x1));
if (cur < 0) {
ast_log(LOG_WARNING, "Unable to find our position\n");
More information about the svn-commits
mailing list