comparison indeo3.c @ 6218:dfdff1ca78a7 libavcodec

consts I have underestimated this a little, and these are just some ...
author michael
date Fri, 01 Feb 2008 03:26:31 +0000
parents d912f75d3b5d
children e270eccc622f
comparison
equal deleted inserted replaced
6217:f838213ca91b 6218:dfdff1ca78a7
174 av_free(s->corrector_type); 174 av_free(s->corrector_type);
175 } 175 }
176 176
177 /* ---------------------------------------------------------------------- */ 177 /* ---------------------------------------------------------------------- */
178 static unsigned long iv_decode_frame(Indeo3DecodeContext *s, 178 static unsigned long iv_decode_frame(Indeo3DecodeContext *s,
179 unsigned char *buf, int buf_size) 179 const unsigned char *buf, int buf_size)
180 { 180 {
181 unsigned int hdr_width, hdr_height, 181 unsigned int hdr_width, hdr_height,
182 chroma_width, chroma_height; 182 chroma_width, chroma_height;
183 unsigned long fflags1, fflags2, fflags3, offs1, offs2, offs3, offs; 183 unsigned long fflags1, fflags2, fflags3, offs1, offs2, offs3, offs;
184 unsigned char *hdr_pos, *buf_pos; 184 const unsigned char *hdr_pos, *buf_pos;
185 185
186 buf_pos = buf; 186 buf_pos = buf;
187 buf_pos += 18; 187 buf_pos += 18;
188 188
189 fflags1 = le2me_16(*(uint16_t *)buf_pos); 189 fflags1 = le2me_16(*(uint16_t *)buf_pos);
1072 return 0; 1072 return 0;
1073 } 1073 }
1074 1074
1075 static int indeo3_decode_frame(AVCodecContext *avctx, 1075 static int indeo3_decode_frame(AVCodecContext *avctx,
1076 void *data, int *data_size, 1076 void *data, int *data_size,
1077 unsigned char *buf, int buf_size) 1077 const unsigned char *buf, int buf_size)
1078 { 1078 {
1079 Indeo3DecodeContext *s=avctx->priv_data; 1079 Indeo3DecodeContext *s=avctx->priv_data;
1080 unsigned char *src, *dest; 1080 unsigned char *src, *dest;
1081 int y; 1081 int y;
1082 1082