mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
pointer signedness warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -181,7 +181,7 @@ static struct ast_frame *lintoilbc_frameout(struct ast_trans_pvt *pvt)
|
|||||||
/* Encode a frame of data */
|
/* Encode a frame of data */
|
||||||
for ( i = 0 ; i < ILBC_SAMPLES ; i++ )
|
for ( i = 0 ; i < ILBC_SAMPLES ; i++ )
|
||||||
tmpf[i] = tmp->buf[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;
|
datalen += ILBC_FRAME_LEN;
|
||||||
samples += ILBC_SAMPLES;
|
samples += ILBC_SAMPLES;
|
||||||
pvt->samples -= ILBC_SAMPLES;
|
pvt->samples -= ILBC_SAMPLES;
|
||||||
|
@@ -211,7 +211,7 @@ static struct ast_frame *lintolpc10_frameout(struct ast_trans_pvt *pvt)
|
|||||||
for (x=0;x<LPC10_SAMPLES_PER_FRAME;x++)
|
for (x=0;x<LPC10_SAMPLES_PER_FRAME;x++)
|
||||||
tmpbuf[x] = (float)tmp->buf[x + samples] / 32768.0;
|
tmpbuf[x] = (float)tmp->buf[x + samples] / 32768.0;
|
||||||
lpc10_encode(tmpbuf, bits, tmp->lpc10.enc);
|
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;
|
datalen += LPC10_BYTES_IN_COMPRESSED_FRAME;
|
||||||
samples += LPC10_SAMPLES_PER_FRAME;
|
samples += LPC10_SAMPLES_PER_FRAME;
|
||||||
pvt->samples -= LPC10_SAMPLES_PER_FRAME;
|
pvt->samples -= LPC10_SAMPLES_PER_FRAME;
|
||||||
|
Reference in New Issue
Block a user