mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Fix format for big endian systems
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -226,7 +226,7 @@ static int update_header(FILE *f)
|
|||||||
end = ftello(f);
|
end = ftello(f);
|
||||||
/* in a gsm WAV, data starts 60 bytes in */
|
/* in a gsm WAV, data starts 60 bytes in */
|
||||||
bytes = end - MSGSM_DATA_OFFSET;
|
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);
|
datalen = htoll((bytes + 1) & ~0x1);
|
||||||
filelen = htoll(MSGSM_DATA_OFFSET - 8 + ((bytes + 1) & ~0x1));
|
filelen = htoll(MSGSM_DATA_OFFSET - 8 + ((bytes + 1) & ~0x1));
|
||||||
if (cur < 0) {
|
if (cur < 0) {
|
||||||
|
Reference in New Issue
Block a user