From 954d94dd5e13ba7a5e9e049d0f980bddced9644c Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 20 Nov 2011 14:03:21 -0500 Subject: adx: use 12-bit coefficients instead of 14-bit to avoid integer overflow --- libavcodec/adx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/adx.h') diff --git a/libavcodec/adx.h b/libavcodec/adx.h index a329afb4c4..ae5eb6a434 100644 --- a/libavcodec/adx.h +++ b/libavcodec/adx.h @@ -43,8 +43,8 @@ typedef struct { int in_temp; } ADXContext; -#define BASEVOL 0x4000 -#define SCALE1 0x7298 -#define SCALE2 0x3350 +#define COEFF_BITS 12 +#define COEFF1 0x1CA6 +#define COEFF2 0x0CD4 #endif /* AVCODEC_ADX_H */ -- cgit v1.2.3