comparison asv1.c @ 9393:25b3650b4db5 libavcodec

Use INIT_VLC_USE_STATIC and not its value "1".
author cehoyos
date Sat, 11 Apr 2009 11:47:15 +0000
parents 54bc8a2727b0
children 0fa22c289cb2
comparison
equal deleted inserted replaced
9392:a5bc2084bd6a 9393:25b3650b4db5
119 if (!done) { 119 if (!done) {
120 done = 1; 120 done = 1;
121 121
122 init_vlc(&ccp_vlc, VLC_BITS, 17, 122 init_vlc(&ccp_vlc, VLC_BITS, 17,
123 &ccp_tab[0][1], 2, 1, 123 &ccp_tab[0][1], 2, 1,
124 &ccp_tab[0][0], 2, 1, 1); 124 &ccp_tab[0][0], 2, 1, INIT_VLC_USE_STATIC);
125 init_vlc(&dc_ccp_vlc, VLC_BITS, 8, 125 init_vlc(&dc_ccp_vlc, VLC_BITS, 8,
126 &dc_ccp_tab[0][1], 2, 1, 126 &dc_ccp_tab[0][1], 2, 1,
127 &dc_ccp_tab[0][0], 2, 1, 1); 127 &dc_ccp_tab[0][0], 2, 1, INIT_VLC_USE_STATIC);
128 init_vlc(&ac_ccp_vlc, VLC_BITS, 16, 128 init_vlc(&ac_ccp_vlc, VLC_BITS, 16,
129 &ac_ccp_tab[0][1], 2, 1, 129 &ac_ccp_tab[0][1], 2, 1,
130 &ac_ccp_tab[0][0], 2, 1, 1); 130 &ac_ccp_tab[0][0], 2, 1, INIT_VLC_USE_STATIC);
131 init_vlc(&level_vlc, VLC_BITS, 7, 131 init_vlc(&level_vlc, VLC_BITS, 7,
132 &level_tab[0][1], 2, 1, 132 &level_tab[0][1], 2, 1,
133 &level_tab[0][0], 2, 1, 1); 133 &level_tab[0][0], 2, 1, INIT_VLC_USE_STATIC);
134 init_vlc(&asv2_level_vlc, ASV2_LEVEL_VLC_BITS, 63, 134 init_vlc(&asv2_level_vlc, ASV2_LEVEL_VLC_BITS, 63,
135 &asv2_level_tab[0][1], 2, 1, 135 &asv2_level_tab[0][1], 2, 1,
136 &asv2_level_tab[0][0], 2, 1, 1); 136 &asv2_level_tab[0][0], 2, 1, INIT_VLC_USE_STATIC);
137 } 137 }
138 } 138 }
139 139
140 //FIXME write a reversed bitstream reader to avoid the double reverse 140 //FIXME write a reversed bitstream reader to avoid the double reverse
141 static inline int asv2_get_bits(GetBitContext *gb, int n){ 141 static inline int asv2_get_bits(GetBitContext *gb, int n){