[svn-commits] trunk r35184 - /trunk/formats/format_wav_gsm.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Tue Jun 20 15:22:47 MST 2006
Author: tilghman
Date: Tue Jun 20 17:22:47 2006
New Revision: 35184
URL: http://svn.digium.com/view/asterisk?rev=35184&view=rev
Log:
Bug 7372: Wrong size for the block alignment (should have been 4 bytes;
writing 4 from a 2-byte integer caused extra (wrong) bytes set in the header)
Modified:
trunk/formats/format_wav_gsm.c
Modified: trunk/formats/format_wav_gsm.c
URL: http://svn.digium.com/view/asterisk/trunk/formats/format_wav_gsm.c?rev=35184&r1=35183&r2=35184&view=diff
==============================================================================
--- trunk/formats/format_wav_gsm.c (original)
+++ trunk/formats/format_wav_gsm.c Tue Jun 20 17:22:47 2006
@@ -277,7 +277,7 @@
/* Mono = 1 channel */
unsigned short chans = htols(1);
/* Each block of data is exactly 65 bytes in size. */
- unsigned short block_align = htols(MSGSM_FRAME_SIZE);
+ unsigned int block_align = htoll(MSGSM_FRAME_SIZE);
/* Not actually 2, but rounded up to the nearest bit */
unsigned short bits_per_sample = htols(2);
/* Needed for compressed formats */
More information about the svn-commits
mailing list