mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix the case in the coeff quantizer where the coeffs were not quantized when the shift is zero
This commit is contained in:
@@ -155,8 +155,7 @@ redo_it:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(*shift != 0) { /* just to avoid wasting time... */
|
if(*shift >= 0) {
|
||||||
if(*shift > 0) {
|
|
||||||
for(i = 0; i < order; i++) {
|
for(i = 0; i < order; i++) {
|
||||||
qlp_coeff[i] = (FLAC__int32)floor((double)lp_coeff[i] * (double)(1 << *shift));
|
qlp_coeff[i] = (FLAC__int32)floor((double)lp_coeff[i] * (double)(1 << *shift));
|
||||||
|
|
||||||
@@ -186,7 +185,7 @@ redo_it:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user