aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-21 20:15:20 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-21 20:15:20 +0000
commit15651de8c0450a65ae99f23cb9eb0d29b949b268 (patch)
treeeef9e1f88d1b04cbdc2cd8b5f615f00a45f75696 /codecs
parent4afdbc642b4133b61c608fb25942306510d024e6 (diff)
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.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48781 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rw-r--r--codecs/codec_g722.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codecs/codec_g722.c b/codecs/codec_g722.c
index 90553a1d1..539827347 100644
--- a/codecs/codec_g722.c
+++ b/codecs/codec_g722.c
@@ -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;