From 2cf28497019dd00f9a30816c5eceb916ea3f46ba Mon Sep 17 00:00:00 2001 From: saratoga Date: Tue, 24 Jun 2008 15:17:14 +0000 Subject: [PATCH] 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(-) diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c index 77767d40d..20c22187b 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 } } -- 2.11.4.GIT