OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6159bd0
)
mdct: remove unnecessary multiplication
author
Young Han Lee
<cpumaker@gmail.com>
Thu, 17 Feb 2011 07:45:54 +0000
(16:45 +0900)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 18 Feb 2011 18:52:33 +0000
(19:52 +0100)
3*n4 was already calculated in n3.
(cherry picked from commit
979395bbbb9381b522b44c3448c24aef9c819ffc
)
libavcodec/mdct.c
patch
|
blob
|
history
diff --git
a/libavcodec/mdct.c
b/libavcodec/mdct.c
index
819f618
..
31e2216
100644
(file)
--- 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]);