comparison smacker.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
346 return v; 346 return v;
347 } 347 }
348 348
349 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) 349 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
350 { 350 {
351 SmackVContext * const smk = (SmackVContext *)avctx->priv_data; 351 SmackVContext * const smk = avctx->priv_data;
352 uint8_t *out; 352 uint8_t *out;
353 uint32_t *pal; 353 uint32_t *pal;
354 GetBitContext gb; 354 GetBitContext gb;
355 int blocks, blk, bw, bh; 355 int blocks, blk, bw, bh;
356 int i; 356 int i;
513 * Init smacker decoder 513 * Init smacker decoder
514 * 514 *
515 */ 515 */
516 static int decode_init(AVCodecContext *avctx) 516 static int decode_init(AVCodecContext *avctx)
517 { 517 {
518 SmackVContext * const c = (SmackVContext *)avctx->priv_data; 518 SmackVContext * const c = avctx->priv_data;
519 519
520 c->avctx = avctx; 520 c->avctx = avctx;
521 521
522 c->pic.data[0] = NULL; 522 c->pic.data[0] = NULL;
523 523
547 * Uninit smacker decoder 547 * Uninit smacker decoder
548 * 548 *
549 */ 549 */
550 static int decode_end(AVCodecContext *avctx) 550 static int decode_end(AVCodecContext *avctx)
551 { 551 {
552 SmackVContext * const smk = (SmackVContext *)avctx->priv_data; 552 SmackVContext * const smk = avctx->priv_data;
553 553
554 av_freep(&smk->mmap_tbl); 554 av_freep(&smk->mmap_tbl);
555 av_freep(&smk->mclr_tbl); 555 av_freep(&smk->mclr_tbl);
556 av_freep(&smk->full_tbl); 556 av_freep(&smk->full_tbl);
557 av_freep(&smk->type_tbl); 557 av_freep(&smk->type_tbl);