comparison flashsv.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
80 } 80 }
81 81
82 82
83 static int flashsv_decode_init(AVCodecContext *avctx) 83 static int flashsv_decode_init(AVCodecContext *avctx)
84 { 84 {
85 FlashSVContext *s = (FlashSVContext *)avctx->priv_data; 85 FlashSVContext *s = avctx->priv_data;
86 int zret; // Zlib return code 86 int zret; // Zlib return code
87 87
88 s->avctx = avctx; 88 s->avctx = avctx;
89 s->zstream.zalloc = Z_NULL; 89 s->zstream.zalloc = Z_NULL;
90 s->zstream.zfree = Z_NULL; 90 s->zstream.zfree = Z_NULL;
103 103
104 static int flashsv_decode_frame(AVCodecContext *avctx, 104 static int flashsv_decode_frame(AVCodecContext *avctx,
105 void *data, int *data_size, 105 void *data, int *data_size,
106 uint8_t *buf, int buf_size) 106 uint8_t *buf, int buf_size)
107 { 107 {
108 FlashSVContext *s = (FlashSVContext *)avctx->priv_data; 108 FlashSVContext *s = avctx->priv_data;
109 int h_blocks, v_blocks, h_part, v_part, i, j; 109 int h_blocks, v_blocks, h_part, v_part, i, j;
110 GetBitContext gb; 110 GetBitContext gb;
111 111
112 /* no supplementary picture */ 112 /* no supplementary picture */
113 if (buf_size == 0) 113 if (buf_size == 0)
229 } 229 }
230 230
231 231
232 static int flashsv_decode_end(AVCodecContext *avctx) 232 static int flashsv_decode_end(AVCodecContext *avctx)
233 { 233 {
234 FlashSVContext *s = (FlashSVContext *)avctx->priv_data; 234 FlashSVContext *s = avctx->priv_data;
235 inflateEnd(&(s->zstream)); 235 inflateEnd(&(s->zstream));
236 /* release the frame if needed */ 236 /* release the frame if needed */
237 if (s->frame.data[0]) 237 if (s->frame.data[0])
238 avctx->release_buffer(avctx, &s->frame); 238 avctx->release_buffer(avctx, &s->frame);
239 239