> Thanks but
>
> -static void dft_stage_init( +static int dft_stage_init( unsigned instance,
> double Fp, double Fs, double Fn, double att, double phase, stage_t * stage,
> int L, int M) { @@ -229,6 +229,12 @@ static void dft_stage_init( else
> f->post_peak = num_taps / 2; dft_length = lsx_set_dft_length(num_taps); + +
> if (L > dft_length) { + lsx_fail("invalid DFT parameters"); + return
> SOX_EINVAL; + } + f->coefs = calloc(dft_length, sizeof(*f->coefs)); for (i =
> 0; i < num_taps; ++i) f->coefs[(i + dft_length - num_taps + 1) & (dft_length
> - 1)]
your mailer is broken: please respect the line breaks.
Jan
_______________________________________________
SoX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-devel