diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2005-01-16 17:55:31 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2005-01-16 17:55:31 +0000 |
commit | be49aa0fac66f4a58d33b01b438bb30fee4a3b89 (patch) | |
tree | d34708b48bbec272a4720c896e5b95f1e3bfd0a7 /src/libmusepack/requant.c | |
parent | c085fd10b4ad686c90d25264bdda16b7396ecc63 (diff) | |
download | xine-lib-be49aa0fac66f4a58d33b01b438bb30fee4a3b89.tar.gz xine-lib-be49aa0fac66f4a58d33b01b438bb30fee4a3b89.tar.bz2 |
**BUGFIX**
trying to get rid of compiler warnings and make the test suite compile again
CVS patchset: 7353
CVS date: 2005/01/16 17:55:31
Diffstat (limited to 'src/libmusepack/requant.c')
-rw-r--r-- | src/libmusepack/requant.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libmusepack/requant.c b/src/libmusepack/requant.c index 076e5809c..d318d0bd0 100644 --- a/src/libmusepack/requant.c +++ b/src/libmusepack/requant.c @@ -37,6 +37,7 @@ /// \todo document me #include "musepack/musepack.h" +#include "musepack/internal.h" /* C O N S T A N T S */ // bits per sample for chosen quantizer @@ -87,14 +88,15 @@ static mpc_uint32_t find_shift(double fval) void mpc_decoder_scale_output(mpc_decoder *d, double factor) { + mpc_int32_t n; + double f1; + double f2; #ifndef MPC_FIXED_POINT factor *= 1.0 / (double)(1<<(MPC_FIXED_POINT_SHIFT-1)); #else factor *= 1.0 / (double)(1<<(16 - MPC_FIXED_POINT_SHIFT)); #endif - mpc_int32_t n; - double f1 = factor; - double f2 = factor; + f1 = f2 = factor; // handles +1.58...-98.41 dB, where's scf[n] / scf[n-1] = 1.20050805774840750476 @@ -111,7 +113,7 @@ mpc_decoder_scale_output(mpc_decoder *d, double factor) } } -void +static void mpc_decoder_quantisierungsmodes(mpc_decoder *d) // conversion: index -> quantizer (bitstream reading) { // conversion: quantizer -> index (bitstream writing) mpc_int32_t Band = 0; |