diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2007-07-25 02:34:21 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2007-07-25 02:34:21 +0000 |
commit | 54b80471a50074242f6e30e2027e5dd3cbfc5d75 (patch) | |
tree | dc59991a28eccc745cbd844ddbc10d023e3fe3e8 | |
parent | f2c198758601bc869465d500b8c79e0d3ae6c367 (diff) | |
download | rockbox-54b80471a50074242f6e30e2027e5dd3cbfc5d75.tar.gz rockbox-54b80471a50074242f6e30e2027e5dd3cbfc5d75.zip |
Fix overflow in noise coding. Greatly improves sound quality of some low bitrate files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13975 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/codecs/libwma/wmadeci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c index 7eefa0310d..ecde2fd034 100644 --- a/apps/codecs/libwma/wmadeci.c +++ b/apps/codecs/libwma/wmadeci.c | |||
@@ -1428,7 +1428,7 @@ static int wma_decode_block(WMADecodeContext *s) | |||
1428 | e2 = 0; | 1428 | e2 = 0; |
1429 | for(i = 0;i < n; ++i) | 1429 | for(i = 0;i < n; ++i) |
1430 | { | 1430 | { |
1431 | v = exp_ptr[i]; | 1431 | v = exp_ptr[i]>>5; /*v is noramlized later on so its fixed format is irrelevant*/ |
1432 | e2 += fixmul32(v, v); | 1432 | e2 += fixmul32(v, v); |
1433 | } | 1433 | } |
1434 | exp_power[j] = e2/n; /*n is an int...*/ | 1434 | exp_power[j] = e2/n; /*n is an int...*/ |