fix another possible bug in the quantizer

This commit is contained in:
Josh Coalson
2001-07-18 23:47:19 +00:00
parent f207c2bea3
commit d3ed49fb92

View File

@@ -140,7 +140,7 @@ int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order,
cmax = d; cmax = d;
} }
redo_it: redo_it:
if(cmax < 0.0) { if(cmax <= 0.0) {
/* => coefficients are all 0, which means our constant-detect didn't work */ /* => coefficients are all 0, which means our constant-detect didn't work */
return 2; return 2;
} }