aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flac.c
diff options
context:
space:
mode:
authorStefan Gehrer <stefan.gehrer@gmx.de>2008-06-24 20:01:31 +0000
committerStefan Gehrer <stefan.gehrer@gmx.de>2008-06-24 20:01:31 +0000
commitcf2baeb3382283d41eac7886ea831f52262971ba (patch)
tree986724da3ac8630b2903b8edc7a89498e2baf854 /libavcodec/flac.c
parent73cc419b271ac5af8c1aed36b5c0167c7016127a (diff)
downloadffmpeg-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.c6
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
};