summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro/wmaprodec.c
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-07-28 18:39:10 +0000
committerMohamed Tarek <mt@rockbox.org>2010-07-28 18:39:10 +0000
commit7722c1d459a1c9d8d7be995e83b65daf70f7714a (patch)
treedc264fe3b291681c3acd43e8a98131244fd76a20 /apps/codecs/libwmapro/wmaprodec.c
parenta9acd1f45b6ff7553317061733c6b9d51aad9450 (diff)
downloadrockbox-7722c1d459a1c9d8d7be995e83b65daf70f7714a.tar.gz
rockbox-7722c1d459a1c9d8d7be995e83b65daf70f7714a.zip
Correct the scaling of the coeffs to 17bits.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27599 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro/wmaprodec.c')
-rw-r--r--apps/codecs/libwmapro/wmaprodec.c2
1 files changed, 1 insertions, 1 deletions
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)
873 for (i = 0; i < 4; i++) { 873 for (i = 0; i < 4; i++) {
874 if (vals[i]) { 874 if (vals[i]) {
875 int sign = get_bits1(&s->gb) - 1; 875 int sign = get_bits1(&s->gb) - 1;
876 ci->coeffs[cur_coeff] = (sign == -1)? -vals[i]<<16 : vals[i]<<16; 876 ci->coeffs[cur_coeff] = (sign == -1)? -vals[i]<<17 : vals[i]<<17;
877 num_zeros = 0; 877 num_zeros = 0;
878 } else { 878 } else {
879 ci->coeffs[cur_coeff] = 0; 879 ci->coeffs[cur_coeff] = 0;