# HG changeset patch # User michael # Date 1152790912 0 # Node ID 9cda085ab7ccf1f22ade858f1bc7a237a40c8f80 # Parent 444bd402aebeb70ce37a05af9e079a1bd94652b9 dither lpc cpeffs diff -r 444bd402aebe -r 9cda085ab7cc flacenc.c --- a/flacenc.c Wed Jul 12 16:49:14 2006 +0000 +++ b/flacenc.c Thu Jul 13 11:41:52 2006 +0000 @@ -661,7 +661,7 @@ int32_t *lpc_out, int *shift) { int i; - double cmax; + double cmax, error; int32_t qmax; int sh; @@ -697,8 +697,11 @@ } /* output quantized coefficients and level shift */ + error=0; for(i=0; i