summaryrefslogtreecommitdiffstats
path: root/sbc
diff options
context:
space:
mode:
authorBrad Midgley <bmidgley@xmission.com>2007-10-17 07:36:25 +0000
committerBrad Midgley <bmidgley@xmission.com>2007-10-17 07:36:25 +0000
commitf06a303b02c9188efd7cb00c2cce19b14098874b (patch)
tree13fdf5f75e3a6fa6b2133bbd226097faaa9f6a6b /sbc
parent3571ae843629585caf996c73200bbbfd05c260a6 (diff)
8-subband encoder had a sign error that made high frequencies noisy
Diffstat (limited to 'sbc')
-rw-r--r--sbc/sbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbc/sbc.c b/sbc/sbc.c
index 6fcf6e24..94e5c752 100644
--- a/sbc/sbc.c
+++ b/sbc/sbc.c
@@ -889,7 +889,7 @@ static inline void _sbc_analyze_eight(const int32_t *in, int32_t *out)
out[2] = SCALE8_STAGE2( s[1] - s[3] + s[5] - s[6]);
out[3] = SCALE8_STAGE2(-s[0] + s[1] + s[3] + s[7]);
out[4] = SCALE8_STAGE2(-s[0] + s[1] + s[3] - s[7]);
- out[5] = SCALE8_STAGE2( s[1] - s[3] - s[5] + s[6]);
+ out[5] = SCALE8_STAGE2( s[1] - s[3] - s[5] - s[6]);
out[6] = SCALE8_STAGE2( s[1] - s[3] - s[4] + s[6]);
out[7] = SCALE8_STAGE2( s[0] + s[1] - s[2] + s[3]);
}