forked from len0rd/rockbox
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:
parent
f2c1987586
commit
54b80471a5
1 changed files with 1 additions and 1 deletions
|
|
@ -1428,7 +1428,7 @@ static int wma_decode_block(WMADecodeContext *s)
|
||||||
e2 = 0;
|
e2 = 0;
|
||||||
for(i = 0;i < n; ++i)
|
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);
|
e2 += fixmul32(v, v);
|
||||||
}
|
}
|
||||||
exp_power[j] = e2/n; /*n is an int...*/
|
exp_power[j] = e2/n; /*n is an int...*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue