summaryrefslogtreecommitdiff
path: root/libavcodec/mdec.c
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2008-06-27 18:53:41 +0000
committerAlexander Strange <astrange@ithinksw.com>2008-06-27 18:53:41 +0000
commitb6a66897b67a68ce99e0b7bfede90ae0b43275a7 (patch)
tree6365c2d3672b8b7985284251476c25ad1482ed36 /libavcodec/mdec.c
parent39047aecaca75ce236dfd27735726868a67c9224 (diff)
Remove pointless AVFrame* casting.
Originally committed as revision 14011 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mdec.c')
-rw-r--r--libavcodec/mdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index ea6922d447..b928ac1efb 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -157,7 +157,7 @@ static int decode_frame(AVCodecContext *avctx,
{
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 @@ static int decode_frame(AVCodecContext *avctx,
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 @@ static av_cold void mdec_common_init(AVCodecContext *avctx){
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();