aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codec_alaw.c
diff options
context:
space:
mode:
Diffstat (limited to 'codecs/codec_alaw.c')
-rw-r--r--codecs/codec_alaw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/codecs/codec_alaw.c b/codecs/codec_alaw.c
index b2f4f9435..a261dedb7 100644
--- a/codecs/codec_alaw.c
+++ b/codecs/codec_alaw.c
@@ -45,7 +45,7 @@ static int alawtolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
{
int i = f->samples;
unsigned char *src = f->data.ptr;
- int16_t *dst = (int16_t *)pvt->outbuf + pvt->samples;
+ int16_t *dst = pvt->outbuf.i16 + pvt->samples;
pvt->samples += i;
pvt->datalen += i * 2; /* 2 bytes/sample */
@@ -60,7 +60,7 @@ static int alawtolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
static int lintoalaw_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
{
int i = f->samples;
- char *dst = pvt->outbuf + pvt->samples;
+ char *dst = pvt->outbuf.c + pvt->samples;
int16_t *src = f->data.ptr;
pvt->samples += i;