# HG changeset patch # User reimar # Date 1252227370 0 # Node ID 50ec8930f99e660288dcb542e365e25dac895eac # Parent c5e8a5a044c38eed125bc658e79dacb18b47b2ec ff_sine_windows table contains only constant data, too. diff -r c5e8a5a044c3 -r 50ec8930f99e dsputil.h --- a/dsputil.h Sun Sep 06 08:53:14 2009 +0000 +++ b/dsputil.h Sun Sep 06 08:56:10 2009 +0000 @@ -757,7 +757,7 @@ extern float ff_sine_1024[1024]; extern float ff_sine_2048[2048]; extern float ff_sine_4096[4096]; -extern float *ff_sine_windows[6]; +extern float * const ff_sine_windows[6]; int ff_mdct_init(MDCTContext *s, int nbits, int inverse, double scale); void ff_imdct_calc_c(MDCTContext *s, FFTSample *output, const FFTSample *input); diff -r c5e8a5a044c3 -r 50ec8930f99e mdct.c --- a/mdct.c Sun Sep 06 08:53:14 2009 +0000 +++ b/mdct.c Sun Sep 06 08:56:10 2009 +0000 @@ -54,7 +54,7 @@ DECLARE_ALIGNED(16, float, ff_sine_1024[1024]); DECLARE_ALIGNED(16, float, ff_sine_2048[2048]); DECLARE_ALIGNED(16, float, ff_sine_4096[4096]); -float *ff_sine_windows[6] = { +float * const ff_sine_windows[6] = { ff_sine_128, ff_sine_256, ff_sine_512, ff_sine_1024, ff_sine_2048, ff_sine_4096 };