[svn-commits] murf: trunk r48781 - /trunk/codecs/codec_g722.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Dec 21 13:15:21 MST 2006


Author: murf
Date: Thu Dec 21 14:15:20 2006
New Revision: 48781

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48781
Log:
This little mod gets rid of that g722 compiler warning that breaks builds configured with --enable-dev-mode; the previous commit of 48767 was to merge in changes for bug 6334, unifying the open mode arguments for saner operation.

Modified:
    trunk/codecs/codec_g722.c

Modified: trunk/codecs/codec_g722.c
URL: http://svn.digium.com/view/asterisk/trunk/codecs/codec_g722.c?view=diff&rev=48781&r1=48780&r2=48781
==============================================================================
--- trunk/codecs/codec_g722.c (original)
+++ trunk/codecs/codec_g722.c Thu Dec 21 14:15:20 2006
@@ -102,7 +102,7 @@
 	struct g722_encoder_pvt *tmp = pvt->pvt;
 	int16_t *src = f->data;
 
-	g722_encode(&tmp->g722, &pvt->outbuf[pvt->datalen], src, f->samples);
+	g722_encode(&tmp->g722, (uint8_t*)(&pvt->outbuf[pvt->datalen]), src, f->samples);
 	/* Since G.722 64kbps per second is one bye per sample, all of these
 	   calculations are easy */
 	pvt->samples += f->samples;



More information about the svn-commits mailing list