From d352bd04383f1c1a5ec17e267cb8d0ce70720519 Mon Sep 17 00:00:00 2001 From: Brad Midgley Date: Sun, 27 Jan 2008 04:29:08 +0000 Subject: avoid an (unlikely) overflow --- sbc/sbc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbc') 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]); -- cgit