summaryrefslogtreecommitdiff
path: root/formats/format_wav_gsm.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2006-04-13 20:19:02 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2006-04-13 20:19:02 +0000
commit4897c72d6b87de05d3f3590e9e1f26bbfd5d92fc (patch)
tree12b43b83ff1384ea013b15b4a07a68fc093a32d9 /formats/format_wav_gsm.c
parent92bd72903f8ce193e7438173923c3b904ad1fe94 (diff)
Fix format for big endian systems
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats/format_wav_gsm.c')
-rw-r--r--formats/format_wav_gsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c
index 9dbf30b53..dedc8f9d9 100644
--- a/formats/format_wav_gsm.c
+++ b/formats/format_wav_gsm.c
@@ -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) {