Mercurial > libavcodec.hg
comparison adpcm.c @ 2753:ba8ecddf5598 libavcodec
adding a few const
author | michael |
---|---|
date | Wed, 01 Jun 2005 21:19:00 +0000 |
parents | 9f17dd9b80c6 |
children | ed1ab1566353 |
comparison
equal
deleted
inserted
replaced
2752:23665209e823 | 2753:ba8ecddf5598 |
---|---|
97 { 115, -52 }, | 97 { 115, -52 }, |
98 { 98, -55 }, | 98 { 98, -55 }, |
99 { 122, -60 } | 99 { 122, -60 } |
100 }; | 100 }; |
101 | 101 |
102 static int ea_adpcm_table[] = { | 102 static const int ea_adpcm_table[] = { |
103 0, 240, 460, 392, 0, 0, -208, -220, 0, 1, | 103 0, 240, 460, 392, 0, 0, -208, -220, 0, 1, |
104 3, 4, 7, 8, 10, 11, 0, -1, -3, -4 | 104 3, 4, 7, 8, 10, 11, 0, -1, -3, -4 |
105 }; | 105 }; |
106 | 106 |
107 static int ct_adpcm_table[8] = { | 107 static const int ct_adpcm_table[8] = { |
108 0x00E6, 0x00E6, 0x00E6, 0x00E6, | 108 0x00E6, 0x00E6, 0x00E6, 0x00E6, |
109 0x0133, 0x0199, 0x0200, 0x0266 | 109 0x0133, 0x0199, 0x0200, 0x0266 |
110 }; | 110 }; |
111 | 111 |
112 // padded to zero where table size is less then 16 | 112 // padded to zero where table size is less then 16 |
113 static int swf_index_tables[4][16] = { | 113 static const int swf_index_tables[4][16] = { |
114 /*2*/ { -1, 2 }, | 114 /*2*/ { -1, 2 }, |
115 /*3*/ { -1, -1, 2, 4 }, | 115 /*3*/ { -1, -1, 2, 4 }, |
116 /*4*/ { -1, -1, -1, -1, 2, 4, 6, 8 }, | 116 /*4*/ { -1, -1, -1, -1, 2, 4, 6, 8 }, |
117 /*5*/ { -1, -1, -1, -1, -1, -1, -1, -1, 1, 2, 4, 6, 8, 10, 13, 16 } | 117 /*5*/ { -1, -1, -1, -1, -1, -1, -1, -1, 1, 2, 4, 6, 8, 10, 13, 16 } |
118 }; | 118 }; |
909 } | 909 } |
910 break; | 910 break; |
911 case CODEC_ID_ADPCM_SWF: | 911 case CODEC_ID_ADPCM_SWF: |
912 { | 912 { |
913 GetBitContext gb; | 913 GetBitContext gb; |
914 int *table; | 914 const int *table; |
915 int k0, signmask; | 915 int k0, signmask; |
916 int size = buf_size*8; | 916 int size = buf_size*8; |
917 | 917 |
918 init_get_bits(&gb, buf, size); | 918 init_get_bits(&gb, buf, size); |
919 | 919 |