diff options
author | Stefan Gehrer <stefan.gehrer@gmx.de> | 2008-06-24 20:01:31 +0000 |
---|---|---|
committer | Stefan Gehrer <stefan.gehrer@gmx.de> | 2008-06-24 20:01:31 +0000 |
commit | cf2baeb3382283d41eac7886ea831f52262971ba (patch) | |
tree | 986724da3ac8630b2903b8edc7a89498e2baf854 /libavcodec/flac.c | |
parent | 73cc419b271ac5af8c1aed36b5c0167c7016127a (diff) | |
download | ffmpeg-cf2baeb3382283d41eac7886ea831f52262971ba.tar.gz |
mark read-only data as const
Originally committed as revision 13947 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flac.c')
-rw-r--r-- | libavcodec/flac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/flac.c b/libavcodec/flac.c index 5896debe31..baf47b1382 100644 --- a/libavcodec/flac.c +++ b/libavcodec/flac.c @@ -75,15 +75,15 @@ typedef struct FLACContext { #define METADATA_TYPE_STREAMINFO 0 -static int sample_rate_table[] = +static const int sample_rate_table[] = { 0, 0, 0, 0, 8000, 16000, 22050, 24000, 32000, 44100, 48000, 96000, 0, 0, 0, 0 }; -static int sample_size_table[] = +static const int sample_size_table[] = { 0, 8, 12, 0, 16, 20, 24, 0 }; -static int blocksize_table[] = { +static const int blocksize_table[] = { 0, 192, 576<<0, 576<<1, 576<<2, 576<<3, 0, 0, 256<<0, 256<<1, 256<<2, 256<<3, 256<<4, 256<<5, 256<<6, 256<<7 }; |