summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r--libavcodec/dsputil.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index cfa9bcf011..b94c2f910a 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -744,14 +744,16 @@ typedef struct FFTContext {
#if CONFIG_HARDCODED_TABLES
#define COSTABLE_CONST const
+#define SINTABLE_CONST const
#else
#define COSTABLE_CONST
+#define SINTABLE_CONST
#endif
#define COSTABLE(size) \
COSTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_cos_##size[size/2])
#define SINTABLE(size) \
- DECLARE_ALIGNED_16(FFTSample, ff_sin_##size[size/2])
+ SINTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_sin_##size[size/2])
extern COSTABLE(16);
extern COSTABLE(32);
extern COSTABLE(64);
@@ -874,7 +876,7 @@ typedef struct {
/* pre/post rotation tables */
const FFTSample *tcos;
- FFTSample *tsin;
+ SINTABLE_CONST FFTSample *tsin;
FFTContext fft;
} RDFTContext;