comparison idcinvideo.c @ 4827:b3ee9a1526b0 libavcodec

Get rid of unnecessary pointer casts. patch by Nicholas Tung, ntung ntung com
author diego
date Sun, 08 Apr 2007 20:24:16 +0000
parents 66ef3690d108
children f99e40a7155b
comparison
equal deleted inserted replaced
4826:9ca9a53a848b 4827:b3ee9a1526b0
147 s->num_huff_nodes[prev] = num_hnodes - 1; 147 s->num_huff_nodes[prev] = num_hnodes - 1;
148 } 148 }
149 149
150 static int idcin_decode_init(AVCodecContext *avctx) 150 static int idcin_decode_init(AVCodecContext *avctx)
151 { 151 {
152 IdcinContext *s = (IdcinContext *)avctx->priv_data; 152 IdcinContext *s = avctx->priv_data;
153 int i, j, histogram_index = 0; 153 int i, j, histogram_index = 0;
154 unsigned char *histograms; 154 unsigned char *histograms;
155 155
156 s->avctx = avctx; 156 s->avctx = avctx;
157 avctx->pix_fmt = PIX_FMT_PAL8; 157 avctx->pix_fmt = PIX_FMT_PAL8;
214 214
215 static int idcin_decode_frame(AVCodecContext *avctx, 215 static int idcin_decode_frame(AVCodecContext *avctx,
216 void *data, int *data_size, 216 void *data, int *data_size,
217 uint8_t *buf, int buf_size) 217 uint8_t *buf, int buf_size)
218 { 218 {
219 IdcinContext *s = (IdcinContext *)avctx->priv_data; 219 IdcinContext *s = avctx->priv_data;
220 AVPaletteControl *palette_control = avctx->palctrl; 220 AVPaletteControl *palette_control = avctx->palctrl;
221 221
222 s->buf = buf; 222 s->buf = buf;
223 s->size = buf_size; 223 s->size = buf_size;
224 224
247 return buf_size; 247 return buf_size;
248 } 248 }
249 249
250 static int idcin_decode_end(AVCodecContext *avctx) 250 static int idcin_decode_end(AVCodecContext *avctx)
251 { 251 {
252 IdcinContext *s = (IdcinContext *)avctx->priv_data; 252 IdcinContext *s = avctx->priv_data;
253 253
254 if (s->frame.data[0]) 254 if (s->frame.data[0])
255 avctx->release_buffer(avctx, &s->frame); 255 avctx->release_buffer(avctx, &s->frame);
256 256
257 return 0; 257 return 0;