Commit 7591f831 authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

lpc: increase error array size of ff_lpc_calc_ref_coefs_f by one

Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent 4565611b
......@@ -172,7 +172,7 @@ double ff_lpc_calc_ref_coefs_f(LPCContext *s, const float *samples, int len,
{
int i;
double signal = 0.0f, avg_err = 0.0f;
double autoc[MAX_LPC_ORDER+1] = {0}, error[MAX_LPC_ORDER] = {0};
double autoc[MAX_LPC_ORDER+1] = {0}, error[MAX_LPC_ORDER+1] = {0};
const double c = (len - 1)/2.0f;
/* Welch window */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment