# HG changeset patch # User reimar # Date 1252227194 0 # Node ID c5e8a5a044c38eed125bc658e79dacb18b47b2ec # Parent 9855215d1b2f4a6b7aee21303e7a24930c9ed229 The ff_cos_tabs table itself is constant, too, so mark it as such. diff -r 9855215d1b2f -r c5e8a5a044c3 dsputil.h --- a/dsputil.h Sun Sep 06 08:50:20 2009 +0000 +++ b/dsputil.h Sun Sep 06 08:53:14 2009 +0000 @@ -684,7 +684,7 @@ void (*imdct_half)(struct MDCTContext *s, FFTSample *output, const FFTSample *input); } FFTContext; -extern FFTSample* ff_cos_tabs[13]; +extern FFTSample* const ff_cos_tabs[13]; /** * Sets up a complex FFT. diff -r 9855215d1b2f -r c5e8a5a044c3 fft.c --- a/fft.c Sun Sep 06 08:50:20 2009 +0000 +++ b/fft.c Sun Sep 06 08:53:14 2009 +0000 @@ -42,7 +42,7 @@ DECLARE_ALIGNED_16(FFTSample, ff_cos_16384[8192]); DECLARE_ALIGNED_16(FFTSample, ff_cos_32768[16384]); DECLARE_ALIGNED_16(FFTSample, ff_cos_65536[32768]); -FFTSample *ff_cos_tabs[] = { +FFTSample * const ff_cos_tabs[] = { ff_cos_16, ff_cos_32, ff_cos_64, ff_cos_128, ff_cos_256, ff_cos_512, ff_cos_1024, ff_cos_2048, ff_cos_4096, ff_cos_8192, ff_cos_16384, ff_cos_32768, ff_cos_65536, };