diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-20 22:22:47 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-20 22:22:47 +0000 |
commit | 0f01315346030c3b48d2bd14043d422bdf293319 (patch) | |
tree | b4949df9fdb879d598e62e0f71d9a12303dc6373 /formats | |
parent | c573b3a2445f092e35d734cd696bf9dde8b0b20c (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@35184 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats')
-rw-r--r-- | formats/format_wav_gsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c index 210158e83..c1a1ecac1 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 */ |