samples = 160 * (f->datalen / 33);
break;
case AST_FORMAT_ILBC:
- samples = 240 * (f->datalen / 52);
+ samples = 240 * (f->datalen / 50);
+ break;
+ case AST_FORMAT_G729A:
+ samples = 160 * (f->datalen / 20);
break;
case AST_FORMAT_SLINEAR:
samples = f->datalen / 2;
samples = 240 /* XXX Not necessarily true XXX */;
break;
case AST_FORMAT_ILBC:
- samples = 240 * (f->datalen / 52);
+ samples = 240 * (f->datalen / 50);
break;
case AST_FORMAT_GSM:
samples = 160 * (f->datalen / 33);
rtp->f.samples = 160 * (rtp->f.datalen / 33);
break;
case AST_FORMAT_ILBC:
- rtp->f.samples = 240 * (rtp->f.datalen / 52);
+ rtp->f.samples = 240 * (rtp->f.datalen / 50);
break;
case AST_FORMAT_ADPCM:
rtp->f.samples = rtp->f.datalen * 2;
pred = rtp->lastts + (f->datalen * 160 / 33);
break;
case AST_FORMAT_ILBC:
- pred = rtp->lastts + (f->datalen * 240 / 52);
+ pred = rtp->lastts + (f->datalen * 240 / 50);
break;
case AST_FORMAT_G723_1:
pred = rtp->lastts + g723_samples(f->data, f->datalen);
break;
case AST_FORMAT_ILBC:
if (!rtp->smoother) {
- rtp->smoother = ast_smoother_new(52);
+ rtp->smoother = ast_smoother_new(50);
}
if (!rtp->smoother) {
ast_log(LOG_WARNING, "Unable to create ILBC smoother :(\n");