ff_sine_windows table contains only constant data, too.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 6 Sep 2009 08:56:10 +0000 (08:56 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 6 Sep 2009 08:56:10 +0000 (08:56 +0000)
Originally committed as revision 19785 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dsputil.h
libavcodec/mdct.c

index 5046b0e..7a0fc47 100644 (file)
@@ -757,7 +757,7 @@ 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 *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);
index 8a42adb..684e00d 100644 (file)
@@ -54,7 +54,7 @@ DECLARE_ALIGNED(16, float, ff_sine_512 [ 512]);
 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
 };