summaryrefslogtreecommitdiff
path: root/libavcodec/wma.c
diff options
context:
space:
mode:
authorRobert Swain <robert.swain@gmail.com>2008-08-24 08:31:19 +0000
committerRobert Swain <robert.swain@gmail.com>2008-08-24 08:31:19 +0000
commitcbcbf439b9641b1f2e95ec2ca23a52e6473f725b (patch)
treea9bc8600f3402decd3f0e3141a328b1ea43a2808 /libavcodec/wma.c
parente43b0a7316288ac75e1cd0ff8b0fa8e90ca9164b (diff)
Fix index to ff_sine_windows[]. Previously the index was usually in reverse
order. Originally committed as revision 14940 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wma.c')
-rw-r--r--libavcodec/wma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wma.c b/libavcodec/wma.c
index 6c7e14b250..2bbb0994cc 100644
--- a/libavcodec/wma.c
+++ b/libavcodec/wma.c
@@ -302,8 +302,8 @@ int ff_wma_init(AVCodecContext * avctx, int flags2)
for(i = 0; i < s->nb_block_sizes; i++) {
int n;
n = 1 << (s->frame_len_bits - i);
- ff_sine_window_init(ff_sine_windows[i], n);
- s->windows[i] = ff_sine_windows[i];
+ ff_sine_window_init(ff_sine_windows[s->frame_len_bits - i - 7], n);
+ s->windows[i] = ff_sine_windows[s->frame_len_bits - i - 7];
}
s->reset_block_lengths = 1;