diff options
author | Marton Balint <cus@passwd.hu> | 2016-03-05 04:24:45 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-03-15 00:47:38 +0100 |
commit | 67bef4cffa69f834e2220e20fc4993a569328b1c (patch) | |
tree | 96d250fb3d245142e3e108f40cb30ed9a5b8195f /libavcodec/aac_defines.h | |
parent | af5559ab6711b5a1b017c7f615f8b3469e8b6b01 (diff) | |
download | ffmpeg-67bef4cffa69f834e2220e20fc4993a569328b1c.tar.gz |
avcodec/aactab: do not use floats for constants
This may improve the precision of the fixed point encoder/decoder for some
compilers and architectures.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/aac_defines.h')
-rw-r--r-- | libavcodec/aac_defines.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/aac_defines.h b/libavcodec/aac_defines.h index eff63b347c..c12dc2fab7 100644 --- a/libavcodec/aac_defines.h +++ b/libavcodec/aac_defines.h @@ -89,9 +89,9 @@ typedef float AAC_FLOAT; typedef unsigned AAC_SIGNE; #define FIXR(x) ((float)(x)) #define FIXR10(x) ((float)(x)) -#define Q23(x) x -#define Q30(x) x -#define Q31(x) x +#define Q23(x) ((float)(x)) +#define Q30(x) ((float)(x)) +#define Q31(x) ((float)(x)) #define RANGE15(x) (32768.0 * (x)) #define GET_GAIN(x, y) powf((x), -(y)) #define AAC_MUL16(x, y) ((x) * (y)) |