Fix overflow in noise coding. Greatly improves sound quality of some low bitrate files

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13975 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Giacomelli 2007-07-25 02:34:21 +00:00
parent f2c1987586
commit 54b80471a5

View file

@ -1428,7 +1428,7 @@ static int wma_decode_block(WMADecodeContext *s)
e2 = 0;
for(i = 0;i < n; ++i)
{
v = exp_ptr[i];
v = exp_ptr[i]>>5; /*v is noramlized later on so its fixed format is irrelevant*/
e2 += fixmul32(v, v);
}
exp_power[j] = e2/n; /*n is an int...*/