comparison common.c @ 1057:bb5de8a59da8 libavcodec

* static,const,compiler warning cleanup
author kabi
date Mon, 10 Feb 2003 09:35:32 +0000
parents 44a230c11d83
children b32afefe7d33
comparison
equal deleted inserted replaced
1056:eb403f8158eb 1057:bb5de8a59da8
158 158
159 //#define DEBUG_VLC 159 //#define DEBUG_VLC
160 160
161 #define GET_DATA(v, table, i, wrap, size) \ 161 #define GET_DATA(v, table, i, wrap, size) \
162 {\ 162 {\
163 const UINT8 *ptr = (UINT8 *)table + i * wrap;\ 163 const UINT8 *ptr = (const UINT8 *)table + i * wrap;\
164 switch(size) {\ 164 switch(size) {\
165 case 1:\ 165 case 1:\
166 v = *(UINT8 *)ptr;\ 166 v = *(const UINT8 *)ptr;\
167 break;\ 167 break;\
168 case 2:\ 168 case 2:\
169 v = *(UINT16 *)ptr;\ 169 v = *(const UINT16 *)ptr;\
170 break;\ 170 break;\
171 default:\ 171 default:\
172 v = *(UINT32 *)ptr;\ 172 v = *(const UINT32 *)ptr;\
173 break;\ 173 break;\
174 }\ 174 }\
175 } 175 }
176 176
177 177