dect
/
asterisk
Archived
13
0
Fork 0

Fix format for big endian systems

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19890 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2006-04-13 20:19:02 +00:00
parent 0a88661a99
commit 17ef367a2b
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ static int update_header(FILE *f)
end = ftello(f);
/* in a gsm WAV, data starts 60 bytes in */
bytes = end - MSGSM_DATA_OFFSET;
samples = bytes / MSGSM_FRAME_SIZE * MSGSM_SAMPLES;
samples = htoll(bytes / MSGSM_FRAME_SIZE * MSGSM_SAMPLES);
datalen = htoll((bytes + 1) & ~0x1);
filelen = htoll(MSGSM_DATA_OFFSET - 8 + ((bytes + 1) & ~0x1));
if (cur < 0) {