summaryrefslogtreecommitdiff
path: root/libavcodec/adx.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-11-20 14:03:21 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-26 16:25:06 -0500
commit954d94dd5e13ba7a5e9e049d0f980bddced9644c (patch)
tree87451e73dada8b00012e03e27c0e5c1aa6f8a53d /libavcodec/adx.h
parentc52ddc60241229af198ac03c8d86d219e7d5942a (diff)
downloadffmpeg-954d94dd5e13ba7a5e9e049d0f980bddced9644c.tar.gz
adx: use 12-bit coefficients instead of 14-bit to avoid integer overflow
Diffstat (limited to 'libavcodec/adx.h')
-rw-r--r--libavcodec/adx.h6
1 files changed, 3 insertions, 3 deletions
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 */