summaryrefslogtreecommitdiffstats
path: root/sbc/sbc.c
diff options
context:
space:
mode:
authorBrad Midgley <bmidgley@xmission.com>2008-01-27 04:29:08 +0000
committerBrad Midgley <bmidgley@xmission.com>2008-01-27 04:29:08 +0000
commitd352bd04383f1c1a5ec17e267cb8d0ce70720519 (patch)
tree1b244a7377e0ddd9ac70b35d998b204488aeb522 /sbc/sbc.c
parentc2ce7c2d410cfb0e67c1635ebf60fc06ae864f33 (diff)
avoid an (unlikely) overflow
Diffstat (limited to 'sbc/sbc.c')
-rw-r--r--sbc/sbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbc/sbc.c b/sbc/sbc.c
index f83c3485..0cb839b6 100644
--- a/sbc/sbc.c
+++ b/sbc/sbc.c
@@ -715,8 +715,8 @@ static inline void _sbc_analyze_four(const int16_t *in, int32_t *out)
sbc_fixed_t t[8];
sbc_extended_t s[5];
- MUL32(res, _sbc_proto_4[0], (in[8] - in[32])); /* Q18 */
- MULA32(res, _sbc_proto_4[1], (in[16] - in[24]));
+ MUL(res, _sbc_proto_4[0], in[8] - in[32]); /* Q18 */
+ MULA(res, _sbc_proto_4[1], in[16] - in[24]);
t[0] = SCALE4_STAGE1(res); /* Q8 */
MUL32(res, _sbc_proto_4[2], in[1]);