This little mod gets rid of that g722 compiler warning that breaks builds configured...
authorSteve Murphy <murf@digium.com>
Thu, 21 Dec 2006 20:15:20 +0000 (20:15 +0000)
committerSteve Murphy <murf@digium.com>
Thu, 21 Dec 2006 20:15:20 +0000 (20:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48781 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/codec_g722.c

index 90553a1..5398273 100644 (file)
@@ -102,7 +102,7 @@ static int lintog722_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
        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;