aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/lpc.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2015-09-05 08:51:19 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2015-09-05 08:51:19 +0100
commit7591f8319b06d7ac6cfc16a852f24a46063f0595 (patch)
tree9b2325bd67052f3ffc3949821e0b640e1b04e98b /libavcodec/lpc.c
parent4565611b04d53b7333fa5ed81e5dc0074482c20c (diff)
downloadffmpeg-7591f8319b06d7ac6cfc16a852f24a46063f0595.tar.gz
lpc: increase error array size of ff_lpc_calc_ref_coefs_f by one
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r--libavcodec/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 315997cc15..5cda7797e4 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -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 */