Index: translate.c =================================================================== --- translate.c (revision 23612) +++ translate.c (working copy) @@ -158,12 +158,16 @@ if (f->samples == 0) { ast_log(LOG_WARNING, "no samples for %s\n", pvt->t->name); } + if( f->data == NULL ) { + ast_log(LOG_ERROR, "NULL pointer in frame data for %s\n", pvt->t->name); + return -1; + } if (pvt->t->buffer_samples) { /* do not pass empty frames to callback */ if (f->datalen == 0) { /* perform PLC with nominal framesize of 20ms/160 samples */ if (pvt->plc) { int l = pvt->t->plc_samples; if (pvt->samples + l > pvt->t->buffer_samples) { - ast_log(LOG_WARNING, "Out of buffer space\n"); + ast_log(LOG_ERROR, "Out of buffer space for %s\n", pvt->t->name); return -1; } l = plc_fillin(pvt->plc, dst + pvt->samples, l); @@ -172,7 +176,7 @@ return 0; } if (pvt->samples + f->samples > pvt->t->buffer_samples) { - ast_log(LOG_WARNING, "Out of buffer space\n"); + ast_log(LOG_ERROR, "Out of buffer space for %s\n", pvt->t->name); return -1; } }