lpc: increase error array size of ff_lpc_calc_ref_coefs_f by one

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
This commit is contained in:
Rostislav Pehlivanov 2015-09-05 08:51:19 +01:00
parent 4565611b04
commit 7591f8319b
1 changed files with 1 additions and 1 deletions

View File

@ -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 */