[asterisk-commits] seanbright: branch seanbright/resolve-shadow-warnings r125473 - in /team/sean...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 26 14:41:28 CDT 2008
Author: seanbright
Date: Thu Jun 26 14:41:27 2008
New Revision: 125473
URL: http://svn.digium.com/view/asterisk?view=rev&rev=125473
Log: (empty)
Modified:
team/seanbright/resolve-shadow-warnings/ (props changed)
team/seanbright/resolve-shadow-warnings/codecs/codec_gsm.c
Propchange: team/seanbright/resolve-shadow-warnings/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: team/seanbright/resolve-shadow-warnings/codecs/codec_gsm.c
URL: http://svn.digium.com/view/asterisk/team/seanbright/resolve-shadow-warnings/codecs/codec_gsm.c?view=diff&rev=125473&r1=125472&r2=125473
==============================================================================
--- team/seanbright/resolve-shadow-warnings/codecs/codec_gsm.c (original)
+++ team/seanbright/resolve-shadow-warnings/codecs/codec_gsm.c Thu Jun 26 14:41:27 2008
@@ -103,7 +103,7 @@
{
struct gsm_translator_pvt *tmp = pvt->pvt;
int x;
- int16_t *dst = (int16_t *)pvt->outbuf;
+ int16_t *dst = pvt->outbuf.i16;
/* guess format from frame len. 65 for MSGSM, 33 for regular GSM */
int flen = (f->datalen % MSGSM_FRAME_LEN == 0) ?
MSGSM_FRAME_LEN : GSM_FRAME_LEN;
@@ -176,7 +176,7 @@
return NULL;
while (pvt->samples >= GSM_SAMPLES) {
/* Encode a frame of data */
- gsm_encode(tmp->gsm, tmp->buf + samples, (gsm_byte *) pvt->outbuf + datalen);
+ gsm_encode(tmp->gsm, tmp->buf + samples, (gsm_byte *) pvt->outbuf.c + datalen);
datalen += GSM_FRAME_LEN;
samples += GSM_SAMPLES;
pvt->samples -= GSM_SAMPLES;
More information about the asterisk-commits
mailing list