Index: apps/codecs/libwma/wmadeci.c =================================================================== --- apps/codecs/libwma/wmadeci.c (revision 19488) +++ apps/codecs/libwma/wmadeci.c (working copy) @@ -1280,14 +1280,11 @@ { /* use noise with specified power */ fixed32 tmp = fixdiv32(exp_power[j],exp_power[last_high_band]); - mult1 = (fixed64)fixsqrt32(tmp); /* XXX: use a table */ /*mult1 is 48.16, pow_table is 48.16*/ - mult1 = mult1 * pow_table[s->high_band_values[ch][j]+20] >> PRECISION; - + mult1 = fixmul32(fixsqrt32(tmp),pow_table[s->high_band_values[ch][j]+20]) >> 16; /*this step has a fairly high degree of error for some reason*/ - mult1 = fixdiv64(mult1,fixmul32(s->max_exponent[ch],s->noise_mult)); - + mult1 = fixdiv64(mult1,fixmul32(s->max_exponent[ch],s->noise_mult)); mult1 = mult1*mdct_norm>>PRECISION; for(i = 0;i < n; ++i) {