# HG changeset patch # User lorenm # Date 1191051832 0 # Node ID c2f88af57c16be8aad4d3591c8aace72ad85039e # Parent d6fc148d1a484a260fb325b9d1f53419f7d59172 was computing one more autocorrelation coefficient that was actually used diff -r d6fc148d1a48 -r c2f88af57c16 flacenc.c --- a/flacenc.c Sat Sep 29 05:41:27 2007 +0000 +++ b/flacenc.c Sat Sep 29 07:43:52 2007 +0000 @@ -608,13 +608,14 @@ double *autoc) { int i, j; - double tmp[len + lag]; + double tmp[len + lag + 1]; double *data1= tmp + lag; apply_welch_window(data, len, data1); for(j=0; j= MIN_LPC_ORDER && max_order <= MAX_LPC_ORDER); if(use_lpc == 1){ - compute_autocorr(samples, blocksize, max_order+1, autoc); + compute_autocorr(samples, blocksize, max_order, autoc); compute_lpc_coefs(autoc, max_order, lpc, ref); }else{