Fixes to reset calls, thanks to Justin Frankel

This commit is contained in:
Chris Cannam
2017-09-26 09:51:22 +01:00
parent 51ef8a63ff
commit 5eb13cb947
4 changed files with 13 additions and 1 deletions

View File

@@ -1236,6 +1236,12 @@ int speex_resampler_reset_mem(SpeexResamplerState *st)
st->mem[i] = 0;
}
for (i = 0; i < st->nb_channels; i++) {
st->last_sample[i] = 0;
st->magic_samples[i] = 0;
st->samp_frac_num[i] = 0;
}
return RESAMPLER_ERR_SUCCESS;
}