aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-09-06 08:56:10 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-09-06 08:56:10 +0000
commitc55e5b5fee70123108e9e7465651c231a6aa453f (patch)
treea2e6246c43c0c858f6e3248209809ba6de34d8ab
parentfaca56191c0a2e9512703a3e01182451d920a6f8 (diff)
downloadffmpeg-c55e5b5fee70123108e9e7465651c231a6aa453f.tar.gz
ff_sine_windows table contains only constant data, too.
Originally committed as revision 19785 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/dsputil.h2
-rw-r--r--libavcodec/mdct.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 5046b0e557..7a0fc47dd8 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -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);
diff --git a/libavcodec/mdct.c b/libavcodec/mdct.c
index 8a42adb4f3..684e00d9ad 100644
--- a/libavcodec/mdct.c
+++ b/libavcodec/mdct.c
@@ -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
};