diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2009-09-15 16:18:16 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2009-09-15 16:18:16 +0000 |
commit | 6776061b04b6f9f669d8ec59f6112e8a9b1dad92 (patch) | |
tree | 6b2e9e739877b48d5dc177ef1572c060e3137ffa /libavcodec/dsputil.h | |
parent | 05db409c280acc22362c2e79ea67abe3873043a5 (diff) | |
download | ffmpeg-6776061b04b6f9f669d8ec59f6112e8a9b1dad92.tar.gz |
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.
Originally committed as revision 19862 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 027d1510ed..cdfdb9bd14 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -760,13 +760,15 @@ void ff_kbd_window_init(float *window, float alpha, int n); * @param n size of half window */ void ff_sine_window_init(float *window, int n); +extern float ff_sine_32 [ 32]; +extern float ff_sine_64 [ 64]; extern float ff_sine_128 [ 128]; extern float ff_sine_256 [ 256]; extern float ff_sine_512 [ 512]; extern float ff_sine_1024[1024]; extern float ff_sine_2048[2048]; extern float ff_sine_4096[4096]; -extern float * const ff_sine_windows[6]; +extern float * const ff_sine_windows[13]; int ff_mdct_init(MDCTContext *s, int nbits, int inverse, double scale); void ff_imdct_calc_c(MDCTContext *s, FFTSample *output, const FFTSample *input); |