[asterisk-commits] trunk r37299 - in /trunk/codecs: codec_ilbc.c codec_lpc10.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jul 7 09:11:39 MST 2006


Author: russell
Date: Fri Jul  7 11:11:39 2006
New Revision: 37299

URL: http://svn.digium.com/view/asterisk?rev=37299&view=rev
Log:
pointer signedness warnings

Modified:
    trunk/codecs/codec_ilbc.c
    trunk/codecs/codec_lpc10.c

Modified: trunk/codecs/codec_ilbc.c
URL: http://svn.digium.com/view/asterisk/trunk/codecs/codec_ilbc.c?rev=37299&r1=37298&r2=37299&view=diff
==============================================================================
--- trunk/codecs/codec_ilbc.c (original)
+++ trunk/codecs/codec_ilbc.c Fri Jul  7 11:11:39 2006
@@ -181,7 +181,7 @@
 		/* Encode a frame of data */
 		for ( i = 0 ; i < ILBC_SAMPLES ; i++ )
 			tmpf[i] = tmp->buf[i];
-		iLBC_encode(pvt->outbuf + datalen, tmpf, &tmp->enc);
+		iLBC_encode((unsigned char *) pvt->outbuf + datalen, tmpf, &tmp->enc);
 		datalen += ILBC_FRAME_LEN;
 		samples += ILBC_SAMPLES;
 		pvt->samples -= ILBC_SAMPLES;

Modified: trunk/codecs/codec_lpc10.c
URL: http://svn.digium.com/view/asterisk/trunk/codecs/codec_lpc10.c?rev=37299&r1=37298&r2=37299&view=diff
==============================================================================
--- trunk/codecs/codec_lpc10.c (original)
+++ trunk/codecs/codec_lpc10.c Fri Jul  7 11:11:39 2006
@@ -211,7 +211,7 @@
 		for (x=0;x<LPC10_SAMPLES_PER_FRAME;x++)
 			tmpbuf[x] = (float)tmp->buf[x + samples] / 32768.0;
 		lpc10_encode(tmpbuf, bits, tmp->lpc10.enc);
-		build_bits(pvt->outbuf + datalen, bits);
+		build_bits((unsigned char *) pvt->outbuf + datalen, bits);
 		datalen += LPC10_BYTES_IN_COMPRESSED_FRAME;
 		samples += LPC10_SAMPLES_PER_FRAME;
 		pvt->samples -= LPC10_SAMPLES_PER_FRAME;



More information about the asterisk-commits mailing list