[FFmpeg-cvslog] r19784 - in trunk/libavcodec: dsputil.h fft.c
reimar
subversion
Sun Sep 6 10:53:15 CEST 2009
Author: reimar
Date: Sun Sep 6 10:53:14 2009
New Revision: 19784
Log:
The ff_cos_tabs table itself is constant, too, so mark it as such.
Modified:
trunk/libavcodec/dsputil.h
trunk/libavcodec/fft.c
Modified: trunk/libavcodec/dsputil.h
==============================================================================
--- trunk/libavcodec/dsputil.h Sun Sep 6 10:50:20 2009 (r19783)
+++ trunk/libavcodec/dsputil.h Sun Sep 6 10:53:14 2009 (r19784)
@@ -684,7 +684,7 @@ typedef struct FFTContext {
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.
Modified: trunk/libavcodec/fft.c
==============================================================================
--- trunk/libavcodec/fft.c Sun Sep 6 10:50:20 2009 (r19783)
+++ trunk/libavcodec/fft.c Sun Sep 6 10:53:14 2009 (r19784)
@@ -42,7 +42,7 @@ DECLARE_ALIGNED_16(FFTSample, ff_cos_819
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,
};
More information about the ffmpeg-cvslog
mailing list