From dab9fa1ef7a547b0f7f3d4605100cd4579570e78 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Tue, 24 Jun 2008 15:17:14 +0000 Subject: 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 --- apps/codecs/libwma/wmadeci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/codecs/libwma') 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) if (s->version == 1) { - fixed32 tmp = fixsqrt32(itofix32(n4)); + fixed32 tmp = fixtoi32(fixsqrt32(itofix32(n4))); mdct_norm *= tmp; // PJJ : exercise this path } } -- cgit v1.2.3