summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2008-06-24 15:17:14 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2008-06-24 15:17:14 +0000
commitdab9fa1ef7a547b0f7f3d4605100cd4579570e78 (patch)
tree06c7ea41fc1f4a0835a42b05a1172459aae3e831 /apps/codecs
parent8358dffd11c45fc9bc30413f5559986c77083efc (diff)
downloadrockbox-dab9fa1ef7a547b0f7f3d4605100cd4579570e78.zip
rockbox-dab9fa1ef7a547b0f7f3d4605100cd4579570e78.tar.gz
rockbox-dab9fa1ef7a547b0f7f3d4605100cd4579570e78.tar.bz2
rockbox-dab9fa1ef7a547b0f7f3d4605100cd4579570e78.tar.xz
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
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/libwma/wmadeci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c
index 77767d4..20c2218 100644
--- a/apps/codecs/libwma/wmadeci.c
+++ b/apps/codecs/libwma/wmadeci.c
@@ -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
}
}