comparison flicvideo.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
78 int fli_type; /* either 0xAF11 or 0xAF12, affects palette resolution */ 78 int fli_type; /* either 0xAF11 or 0xAF12, affects palette resolution */
79 } FlicDecodeContext; 79 } FlicDecodeContext;
80 80
81 static int flic_decode_init(AVCodecContext *avctx) 81 static int flic_decode_init(AVCodecContext *avctx)
82 { 82 {
83 FlicDecodeContext *s = (FlicDecodeContext *)avctx->priv_data; 83 FlicDecodeContext *s = avctx->priv_data;
84 unsigned char *fli_header = (unsigned char *)avctx->extradata; 84 unsigned char *fli_header = (unsigned char *)avctx->extradata;
85 int depth; 85 int depth;
86 86
87 s->avctx = avctx; 87 s->avctx = avctx;
88 88
126 126
127 static int flic_decode_frame_8BPP(AVCodecContext *avctx, 127 static int flic_decode_frame_8BPP(AVCodecContext *avctx,
128 void *data, int *data_size, 128 void *data, int *data_size,
129 uint8_t *buf, int buf_size) 129 uint8_t *buf, int buf_size)
130 { 130 {
131 FlicDecodeContext *s = (FlicDecodeContext *)avctx->priv_data; 131 FlicDecodeContext *s = avctx->priv_data;
132 132
133 int stream_ptr = 0; 133 int stream_ptr = 0;
134 int stream_ptr_after_color_chunk; 134 int stream_ptr_after_color_chunk;
135 int pixel_ptr; 135 int pixel_ptr;
136 int palette_ptr; 136 int palette_ptr;
428 void *data, int *data_size, 428 void *data, int *data_size,
429 uint8_t *buf, int buf_size) 429 uint8_t *buf, int buf_size)
430 { 430 {
431 /* Note, the only difference between the 15Bpp and 16Bpp */ 431 /* Note, the only difference between the 15Bpp and 16Bpp */
432 /* Format is the pixel format, the packets are processed the same. */ 432 /* Format is the pixel format, the packets are processed the same. */
433 FlicDecodeContext *s = (FlicDecodeContext *)avctx->priv_data; 433 FlicDecodeContext *s = avctx->priv_data;
434 434
435 int stream_ptr = 0; 435 int stream_ptr = 0;
436 int pixel_ptr; 436 int pixel_ptr;
437 unsigned char palette_idx1; 437 unsigned char palette_idx1;
438 438