From: Tilghman Lesher Date: Tue, 20 Jun 2006 22:22:47 +0000 (+0000) Subject: Bug 7372: Wrong size for the block alignment (should have been 4 bytes; X-Git-Tag: 1.4.0-beta1~832 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2291834bd59d4844deb786faee442aabca6d3726;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35184 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c index 210158e83b..c1a1ecac17 100644 --- a/formats/format_wav_gsm.c +++ b/formats/format_wav_gsm.c @@ -277,7 +277,7 @@ static int write_header(FILE *f) /* 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 */