summaryrefslogtreecommitdiff
path: root/apps/codecs/libwma
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/libwma
parent8358dffd11c45fc9bc30413f5559986c77083efc (diff)
downloadrockbox-dab9fa1ef7a547b0f7f3d4605100cd4579570e78.tar.gz
rockbox-dab9fa1ef7a547b0f7f3d4605100cd4579570e78.zip
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/libwma')
-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 77767d40df..20c22187b2 100644
--- a/apps/codecs/libwma/wmadeci.c
+++ b/apps/codecs/libwma/wmadeci.c
@@ -1175,7 +1175,7 @@ static int wma_decode_block(WMADecodeContext *s)
1175 1175
1176 if (s->version == 1) 1176 if (s->version == 1)
1177 { 1177 {
1178 fixed32 tmp = fixsqrt32(itofix32(n4)); 1178 fixed32 tmp = fixtoi32(fixsqrt32(itofix32(n4)));
1179 mdct_norm *= tmp; // PJJ : exercise this path 1179 mdct_norm *= tmp; // PJJ : exercise this path
1180 } 1180 }
1181 } 1181 }