[asterisk-commits] trunk r19890 - /trunk/formats/format_wav_gsm.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Apr 13 13:19:03 MST 2006


Author: tilghman
Date: Thu Apr 13 15:19:02 2006
New Revision: 19890

URL: http://svn.digium.com/view/asterisk?rev=19890&view=rev
Log:
Fix format for big endian systems

Modified:
    trunk/formats/format_wav_gsm.c

Modified: trunk/formats/format_wav_gsm.c
URL: http://svn.digium.com/view/asterisk/trunk/formats/format_wav_gsm.c?rev=19890&r1=19889&r2=19890&view=diff
==============================================================================
--- trunk/formats/format_wav_gsm.c (original)
+++ trunk/formats/format_wav_gsm.c Thu Apr 13 15:19:02 2006
@@ -226,7 +226,7 @@
 	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) {



More information about the asterisk-commits mailing list