mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix another possible bug in the quantizer
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user