diff options
Diffstat (limited to 'codecs')
-rw-r--r-- | codecs/codec_ilbc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/codecs/codec_ilbc.c b/codecs/codec_ilbc.c index cc5e4990c..7229b434d 100644 --- a/codecs/codec_ilbc.c +++ b/codecs/codec_ilbc.c @@ -89,7 +89,7 @@ static int ilbctolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f) float tmpf[ILBC_SAMPLES]; if (!f->data.ptr && f->datalen) { - ast_log(LOG_DEBUG, "issue 16070, ILIB ERROR. data = NULL datalen = %d src = %s\n", f->datalen, f->src ? f->src : "no src set"); + ast_debug(1, "issue 16070, ILIB ERROR. data = NULL datalen = %d src = %s\n", f->datalen, f->src ? f->src : "no src set"); f->datalen = 0; } @@ -104,12 +104,12 @@ static int ilbctolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f) ast_log(LOG_WARNING, "Huh? An ilbc frame that isn't a multiple of 50 bytes long from %s (%d)?\n", f->src, f->datalen); return -1; } - + for (x=0; x < f->datalen ; x += ILBC_FRAME_LEN) { - if (pvt->samples + ILBC_SAMPLES > BUFFER_SAMPLES) { + if (pvt->samples + ILBC_SAMPLES > BUFFER_SAMPLES) { ast_log(LOG_WARNING, "Out of buffer space\n"); return -1; - } + } iLBC_decode(tmpf, plc_mode ? f->data.ptr + x : NULL, &tmp->dec, plc_mode); for ( i=0; i < ILBC_SAMPLES; i++) dst[pvt->samples + i] = tmpf[i]; |