From 7722c1d459a1c9d8d7be995e83b65daf70f7714a Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Wed, 28 Jul 2010 18:39:10 +0000 Subject: Correct the scaling of the coeffs to 17bits. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27599 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwmapro/wmaprodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/codecs/libwmapro/wmaprodec.c') diff --git a/apps/codecs/libwmapro/wmaprodec.c b/apps/codecs/libwmapro/wmaprodec.c index 0b5caff2f2..33848d4ea3 100644 --- a/apps/codecs/libwmapro/wmaprodec.c +++ b/apps/codecs/libwmapro/wmaprodec.c @@ -873,7 +873,7 @@ static int decode_coeffs(WMAProDecodeCtx *s, int c) for (i = 0; i < 4; i++) { if (vals[i]) { int sign = get_bits1(&s->gb) - 1; - ci->coeffs[cur_coeff] = (sign == -1)? -vals[i]<<16 : vals[i]<<16; + ci->coeffs[cur_coeff] = (sign == -1)? -vals[i]<<17 : vals[i]<<17; num_zeros = 0; } else { ci->coeffs[cur_coeff] = 0; -- cgit v1.2.3