[FFmpeg-cvslog] r14940 - trunk/libavcodec/wma.c
superdump
subversion
Sun Aug 24 10:31:19 CEST 2008
Author: superdump
Date: Sun Aug 24 10:31:19 2008
New Revision: 14940
Log:
Fix index to ff_sine_windows[]. Previously the index was usually in reverse
order.
Modified:
trunk/libavcodec/wma.c
Modified: trunk/libavcodec/wma.c
==============================================================================
--- trunk/libavcodec/wma.c (original)
+++ trunk/libavcodec/wma.c Sun Aug 24 10:31:19 2008
@@ -302,8 +302,8 @@ int ff_wma_init(AVCodecContext * avctx,
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;
More information about the ffmpeg-cvslog
mailing list