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 };