Fix for WMAv1 decoding suggested by Rafael Carre. I don't think anyone out there will ever use V1, but its worth having correct code for its own sake.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17782 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Giacomelli 2008-06-24 15:17:14 +00:00
parent 8358dffd11
commit dab9fa1ef7

View file

@ -1175,7 +1175,7 @@ static int wma_decode_block(WMADecodeContext *s)
if (s->version == 1)
{
fixed32 tmp = fixsqrt32(itofix32(n4));
fixed32 tmp = fixtoi32(fixsqrt32(itofix32(n4)));
mdct_norm *= tmp; // PJJ : exercise this path
}
}