comparison flac.c @ 7129:322023e630a6 libavcodec

mark read-only data as const
author stefang
date Tue, 24 Jun 2008 20:01:31 +0000
parents e943e1409077
children 3511d8cdd310
comparison
equal deleted inserted replaced
7128:614bc53e67a8 7129:322023e630a6
73 unsigned int allocated_bitstream_size; 73 unsigned int allocated_bitstream_size;
74 } FLACContext; 74 } FLACContext;
75 75
76 #define METADATA_TYPE_STREAMINFO 0 76 #define METADATA_TYPE_STREAMINFO 0
77 77
78 static int sample_rate_table[] = 78 static const int sample_rate_table[] =
79 { 0, 0, 0, 0, 79 { 0, 0, 0, 0,
80 8000, 16000, 22050, 24000, 32000, 44100, 48000, 96000, 80 8000, 16000, 22050, 24000, 32000, 44100, 48000, 96000,
81 0, 0, 0, 0 }; 81 0, 0, 0, 0 };
82 82
83 static int sample_size_table[] = 83 static const int sample_size_table[] =
84 { 0, 8, 12, 0, 16, 20, 24, 0 }; 84 { 0, 8, 12, 0, 16, 20, 24, 0 };
85 85
86 static int blocksize_table[] = { 86 static const int blocksize_table[] = {
87 0, 192, 576<<0, 576<<1, 576<<2, 576<<3, 0, 0, 87 0, 192, 576<<0, 576<<1, 576<<2, 576<<3, 0, 0,
88 256<<0, 256<<1, 256<<2, 256<<3, 256<<4, 256<<5, 256<<6, 256<<7 88 256<<0, 256<<1, 256<<2, 256<<3, 256<<4, 256<<5, 256<<6, 256<<7
89 }; 89 };
90 90
91 static int64_t get_utf8(GetBitContext *gb){ 91 static int64_t get_utf8(GetBitContext *gb){