[Asterisk-cvs] asterisk/formats format_wav_gsm.c,1.24,1.25
markster at lists.digium.com
markster at lists.digium.com
Sat Oct 9 10:54:20 CDT 2004
Update of /usr/cvsroot/asterisk/formats
In directory mongoose.digium.com:/tmp/cvs-serv31518/formats
Modified Files:
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.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- format_wav_gsm.c 3 Oct 2004 20:37:09 -0000 1.24
+++ format_wav_gsm.c 9 Oct 2004 14:55:14 -0000 1.25
@@ -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