[FFmpeg-cvslog] lpc: increase error array size of ff_lpc_calc_ref_coefs_f by one
Rostislav Pehlivanov
git at videolan.org
Sat Sep 5 10:14:01 CEST 2015
ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Sat Sep 5 08:51:19 2015 +0100| [7591f8319b06d7ac6cfc16a852f24a46063f0595] | committer: Rostislav Pehlivanov
lpc: increase error array size of ff_lpc_calc_ref_coefs_f by one
Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7591f8319b06d7ac6cfc16a852f24a46063f0595
---
libavcodec/lpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 315997c..5cda779 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 */
More information about the ffmpeg-cvslog
mailing list