# HG changeset patch # User mru # Date 1151805160 0 # Node ID b956afdc00d98393520fa4203825bbdc04ab4754 # Parent 62e51b7a1b3638d21224fded05eef7ada123d882 remove unneeded casts diff -r 62e51b7a1b36 -r b956afdc00d9 cavs.c --- a/cavs.c Sun Jul 02 01:39:38 2006 +0000 +++ b/cavs.c Sun Jul 02 01:52:40 2006 +0000 @@ -395,7 +395,7 @@ #undef LOWPASS static inline void modify_pred(const int8_t *mod_table, int *mode) { - int newmode = mod_table[(int)*mode]; + int newmode = mod_table[*mode]; if(newmode < 0) { av_log(NULL, AV_LOG_ERROR, "Illegal intra prediction mode\n"); *mode = 0; @@ -913,7 +913,7 @@ for(block=0;block<4;block++) { d = h->cy + h->luma_scan[block]; load_intra_pred_luma(h, top, left, block); - h->intra_pred_l[(int)h->pred_mode_Y[scan3x3[block]]] + h->intra_pred_l[h->pred_mode_Y[scan3x3[block]]] (d, top, left, h->l_stride); if(h->cbp & (1<qp,d,h->l_stride); @@ -1407,7 +1407,7 @@ } void ff_cavs_flush(AVCodecContext * avctx) { - AVSContext *h = (AVSContext *)avctx->priv_data; + AVSContext *h = avctx->priv_data; h->got_keyframe = 0; } @@ -1487,7 +1487,7 @@ } static int cavs_decode_init(AVCodecContext * avctx) { - AVSContext *h = (AVSContext *)avctx->priv_data; + AVSContext *h = avctx->priv_data; MpegEncContext * const s = &h->s; MPV_decode_defaults(s); @@ -1518,7 +1518,7 @@ } static int cavs_decode_end(AVCodecContext * avctx) { - AVSContext *h = (AVSContext *)avctx->priv_data; + AVSContext *h = avctx->priv_data; av_free(h->top_qp); av_free(h->top_mv[0]);