comparison truemotion1.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 6c5198376e06
comparison
equal deleted inserted replaced
4826:9ca9a53a848b 4827:b3ee9a1526b0
463 return header.header_size; 463 return header.header_size;
464 } 464 }
465 465
466 static int truemotion1_decode_init(AVCodecContext *avctx) 466 static int truemotion1_decode_init(AVCodecContext *avctx)
467 { 467 {
468 TrueMotion1Context *s = (TrueMotion1Context *)avctx->priv_data; 468 TrueMotion1Context *s = avctx->priv_data;
469 469
470 s->avctx = avctx; 470 s->avctx = avctx;
471 471
472 // FIXME: it may change ? 472 // FIXME: it may change ?
473 // if (avctx->bits_per_sample == 24) 473 // if (avctx->bits_per_sample == 24)
861 861
862 static int truemotion1_decode_frame(AVCodecContext *avctx, 862 static int truemotion1_decode_frame(AVCodecContext *avctx,
863 void *data, int *data_size, 863 void *data, int *data_size,
864 uint8_t *buf, int buf_size) 864 uint8_t *buf, int buf_size)
865 { 865 {
866 TrueMotion1Context *s = (TrueMotion1Context *)avctx->priv_data; 866 TrueMotion1Context *s = avctx->priv_data;
867 867
868 s->buf = buf; 868 s->buf = buf;
869 s->size = buf_size; 869 s->size = buf_size;
870 870
871 if (truemotion1_decode_header(s) == -1) 871 if (truemotion1_decode_header(s) == -1)
901 return buf_size; 901 return buf_size;
902 } 902 }
903 903
904 static int truemotion1_decode_end(AVCodecContext *avctx) 904 static int truemotion1_decode_end(AVCodecContext *avctx)
905 { 905 {
906 TrueMotion1Context *s = (TrueMotion1Context *)avctx->priv_data; 906 TrueMotion1Context *s = avctx->priv_data;
907 907
908 /* release the last frame */ 908 /* release the last frame */
909 if (s->prev_frame.data[0]) 909 if (s->prev_frame.data[0])
910 avctx->release_buffer(avctx, &s->prev_frame); 910 avctx->release_buffer(avctx, &s->prev_frame);
911 911