Skip to content
Snippets Groups Projects
Commit 7591f831 authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov
Browse files

lpc: increase error array size of ff_lpc_calc_ref_coefs_f by one


Signed-off-by: default avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent 4565611b
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment