diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-02 04:21:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-02 04:21:53 +0200 |
commit | 571572fcddc16ebe3d60054ae5a2db05800c1d6d (patch) | |
tree | 77b2fadc220bc7df13653d49446b9f981bfb98a8 /libavcodec/mpegaudiodsp_template.c | |
parent | 98a2f4e87b5c9439cf66a36b1089c7168206f9b2 (diff) | |
download | ffmpeg-571572fcddc16ebe3d60054ae5a2db05800c1d6d.tar.gz |
mp3dec: adjust IMDCT scaling to avoid overflows
Fixes ticket268
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegaudiodsp_template.c')
-rw-r--r-- | libavcodec/mpegaudiodsp_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodsp_template.c b/libavcodec/mpegaudiodsp_template.c index 8df2ff3079..5d004674ca 100644 --- a/libavcodec/mpegaudiodsp_template.c +++ b/libavcodec/mpegaudiodsp_template.c @@ -243,7 +243,7 @@ void RENAME(ff_init_mpadsp_tabs)(void) else if (i < 18) d = 1; } //merge last stage of imdct into the window coefficients - d *= 0.5 / cos(M_PI * (2 * i + 19) / 72); + d *= 0.5 * IMDCT_SCALAR / cos(M_PI * (2 * i + 19) / 72); if (j == 2) RENAME(ff_mdct_win)[j][i/3] = FIXHR((d / (1<<5))); |