fixed fractional_decimator_ff

This commit is contained in:
ha7ilm 2017-02-18 16:17:53 +01:00
parent 139d3d731b
commit 5f8f8695d3

View file

@ -734,7 +734,7 @@ void fractional_decimator_ff(float* input, float* output, int input_size, fracti
int index_high;
#define FD_INDEX_LOW (index_high-1)
//we optimize to calculate ceilf(where) only once every iteration, so we do it here:
for(;(index_high=ceilf(d->where))+d->taps_length<input_size;d->where+=d->rate) //@fractional_decimator_ff
for(;(index_high=ceilf(d->where))+d->xilast+d->taps_length<input_size;d->where+=d->rate) //@fractional_decimator_ff
{
int sxifirst = FD_INDEX_LOW + d->xifirst;
int sxilast = FD_INDEX_LOW + d->xilast;