Skip to content
Snippets Groups Projects
Commit e3222d81 authored by David Vossel's avatar David Vossel
Browse files

Fixes error with frame datalen being calculated from samples when this is not allwaya accurate.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@314415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 632cd264
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,12 @@ static int resamp_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
{
SpeexResamplerState *resamp_pvt = pvt->pvt;
unsigned int out_samples = (OUTBUF_SIZE / sizeof(int16_t)) - pvt->samples;
unsigned int in_samples = f->samples;
unsigned int in_samples;
if (!f->datalen) {
return -1;
}
in_samples = f->datalen / 2;
speex_resampler_process_int(resamp_pvt,
0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment