Mercurial > libavcodec.hg
comparison wmaprodec.c @ 10174:89cd870ca180 libavcodec
Add two more sizes to ff_sine_windows[] and also pad it with NULLs so
that FF_ELEMS(ff_sine_windows[x]) == 1 << x.
Fix issue 1384.
author | vitor |
---|---|
date | Tue, 15 Sep 2009 16:18:16 +0000 |
parents | b30c708ce76a |
children | a514a601bf26 |
comparison
equal
deleted
inserted
replaced
10173:f55ca9a2b948 | 10174:89cd870ca180 |
---|---|
424 / (1 << (s->bits_per_sample - 1))); | 424 / (1 << (s->bits_per_sample - 1))); |
425 | 425 |
426 /** init MDCT windows: simple sinus window */ | 426 /** init MDCT windows: simple sinus window */ |
427 for (i = 0; i < WMAPRO_BLOCK_SIZES; i++) { | 427 for (i = 0; i < WMAPRO_BLOCK_SIZES; i++) { |
428 const int n = 1 << (WMAPRO_BLOCK_MAX_BITS - i); | 428 const int n = 1 << (WMAPRO_BLOCK_MAX_BITS - i); |
429 const int win_idx = WMAPRO_BLOCK_MAX_BITS - i - 7; | 429 const int win_idx = WMAPRO_BLOCK_MAX_BITS - i; |
430 ff_sine_window_init(ff_sine_windows[win_idx], n); | 430 ff_sine_window_init(ff_sine_windows[win_idx], n); |
431 s->windows[WMAPRO_BLOCK_SIZES - i - 1] = ff_sine_windows[win_idx]; | 431 s->windows[WMAPRO_BLOCK_SIZES - i - 1] = ff_sine_windows[win_idx]; |
432 } | 432 } |
433 | 433 |
434 /** calculate subwoofer cutoff values */ | 434 /** calculate subwoofer cutoff values */ |