aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/mdct.c
diff options
context:
space:
mode:
authorYoung Han Lee2011-02-17 16:45:54 +0900
committerMans Rullgard2011-02-17 11:59:28 +0000
commit979395bbbb9381b522b44c3448c24aef9c819ffc (patch)
treec7ea58e8a8308c4debdab61836a33f5d2ebbf716 /libavcodec/mdct.c
parent5b54d4b376fbd2c291b8a6dba7d425e28f654bcf (diff)
mdct: remove unnecessary multiplication
3*n4 was already calculated in n3.
Diffstat (limited to 'libavcodec/mdct.c')
-rw-r--r--libavcodec/mdct.c2
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]);