# HG changeset patch # User astrange # Date 1214592821 0 # Node ID a702d2a5892ff24f5a769911e03d1cc3793afc5a # Parent 7801d83ba2c8305fb77fe4b2bb32fcf013adcac0 Remove pointless AVFrame* casting. diff -r 7801d83ba2c8 -r a702d2a5892f mdec.c --- a/mdec.c Fri Jun 27 18:52:02 2008 +0000 +++ b/mdec.c Fri Jun 27 18:53:41 2008 +0000 @@ -157,7 +157,7 @@ { MDECContext * const a = avctx->priv_data; AVFrame *picture = data; - AVFrame * const p= (AVFrame*)&a->picture; + AVFrame * const p= &a->picture; int i; if(p->data[0]) @@ -200,7 +200,7 @@ p->quality= a->qscale * FF_QP2LAMBDA; memset(p->qscale_table, a->qscale, p->qstride*a->mb_height); - *picture= *(AVFrame*)&a->picture; + *picture = a->picture; *data_size = sizeof(AVPicture); return (get_bits_count(&a->gb)+31)/32*4; @@ -214,13 +214,13 @@ a->mb_width = (avctx->coded_width + 15) / 16; a->mb_height = (avctx->coded_height + 15) / 16; - avctx->coded_frame= (AVFrame*)&a->picture; + avctx->coded_frame= &a->picture; a->avctx= avctx; } static av_cold int decode_init(AVCodecContext *avctx){ MDECContext * const a = avctx->priv_data; - AVFrame *p= (AVFrame*)&a->picture; + AVFrame *p= &a->picture; mdec_common_init(avctx); init_vlcs();