diff options
author | Young Han Lee <cpumaker@gmail.com> | 2011-02-17 16:45:54 +0900 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-18 19:52:33 +0100 |
commit | 9c9912b995bed00ae2a4717b9d680e30f388117c (patch) | |
tree | 07e12f06d4861feb2384b60d160b2983c4e77a9f | |
parent | 6159bd0d670f88dc87f515f859100c53b7d81a89 (diff) | |
download | ffmpeg-9c9912b995bed00ae2a4717b9d680e30f388117c.tar.gz |
mdct: remove unnecessary multiplication
3*n4 was already calculated in n3.
(cherry picked from commit 979395bbbb9381b522b44c3448c24aef9c819ffc)
-rw-r--r-- | libavcodec/mdct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mdct.c b/libavcodec/mdct.c index 819f618115..31e2216dd3 100644 --- a/libavcodec/mdct.c +++ b/libavcodec/mdct.c @@ -202,7 +202,7 @@ void ff_mdct_calc_c(FFTContext *s, FFTSample *out, const FFTSample *input) /* pre rotation */ for(i=0;i<n8;i++) { - re = -input[2*i+3*n4] - input[n3-1-2*i]; + re = -input[2*i+n3] - input[n3-1-2*i]; im = -input[n4+2*i] + input[n4-1-2*i]; j = revtab[i]; CMUL(x[j].re, x[j].im, re, im, -tcos[i], tsin[i]); |