From cf2baeb3382283d41eac7886ea831f52262971ba Mon Sep 17 00:00:00 2001 From: Stefan Gehrer Date: Tue, 24 Jun 2008 20:01:31 +0000 Subject: mark read-only data as const Originally committed as revision 13947 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/flac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/flac.c') 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 }; -- cgit v1.2.3