mp3dec: adjust IMDCT scaling to avoid overflows

Fixes ticket268

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2012-08-02 04:21:53 +02:00
parent 98a2f4e87b
commit 571572fcdd
3 changed files with 5 additions and 3 deletions

View File

@@ -52,6 +52,8 @@
#define WFRAC_BITS 16 /* fractional bits for window */
#endif
#define IMDCT_SCALAR 1.759
#define FRAC_ONE (1 << FRAC_BITS)
#define FIX(a) ((int)((a) * FRAC_ONE))