fix another possible bug in the quantizer
authorJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 18 Jul 2001 23:47:19 +0000 (23:47 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 18 Jul 2001 23:47:19 +0000 (23:47 +0000)
src/libFLAC/lpc.c

index f588330..28e82bc 100644 (file)
@@ -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;
        }