aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wma.c
diff options
context:
space:
mode:
authorIan Braithwaite <ian@braithwaite.dk>2007-03-26 10:03:57 +0000
committerBenjamin Larsson <banan@ludd.ltu.se>2007-03-26 10:03:57 +0000
commit1890c2acf48eb6471d812915db092e32ed5c9b14 (patch)
tree516242e46b8758467267c56ef1476bb560001901 /libavcodec/wma.c
parentf39c3c885599a3a30abbbca698480b033670ec86 (diff)
downloadffmpeg-1890c2acf48eb6471d812915db092e32ed5c9b14.tar.gz
Optimize by building the mdct window and multipying/adding at the same time.
Patch by Ian Braithwaite ian .. braithwaite . dk [Ffmpeg-devel] WMA decoder speedup 2007-03-22 22:56 Originally committed as revision 8526 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wma.c')
-rw-r--r--libavcodec/wma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wma.c b/libavcodec/wma.c
index 76f04def74..2241a07a0e 100644
--- a/libavcodec/wma.c
+++ b/libavcodec/wma.c
@@ -302,7 +302,7 @@ int ff_wma_init(AVCodecContext * avctx, int flags2)
window = av_malloc(sizeof(float) * n);
alpha = M_PI / (2.0 * n);
for(j=0;j<n;j++) {
- window[n - j - 1] = sin((j + 0.5) * alpha);
+ window[j] = sin((j + 0.5) * alpha);
}
s->windows[i] = window;
}