Commit d3ed49fb authored by Josh Coalson's avatar Josh Coalson
Browse files

fix another possible bug in the quantizer

parent f207c2be
......@@ -140,7 +140,7 @@ int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order,
cmax = d;
}
redo_it:
if(cmax < 0.0) {
if(cmax <= 0.0) {
/* => coefficients are all 0, which means our constant-detect didn't work */
return 2;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment