diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-09-05 08:51:19 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-09-05 08:51:19 +0100 |
commit | 7591f8319b06d7ac6cfc16a852f24a46063f0595 (patch) | |
tree | 9b2325bd67052f3ffc3949821e0b640e1b04e98b /libavcodec | |
parent | 4565611b04d53b7333fa5ed81e5dc0074482c20c (diff) | |
download | ffmpeg-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')
-rw-r--r-- | libavcodec/lpc.c | 2 |
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 */ |