Browse Source

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
tags/v0.5
Robert Swain 17 years ago
parent
commit
cbcbf439b9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/wma.c

+ 2
- 2
libavcodec/wma.c View File

@@ -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;


Loading…
Cancel
Save