cljr: remove useless casts
authorMans Rullgard <mans@mansr.com>
Thu, 8 Dec 2011 14:50:48 +0000 (14:50 +0000)
committerMans Rullgard <mans@mansr.com>
Thu, 8 Dec 2011 15:56:31 +0000 (15:56 +0000)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/cljr.c

index b418647..6071807 100644 (file)
@@ -37,7 +37,7 @@ static av_cold int common_init(AVCodecContext *avctx)
 {
     CLJRContext * const a = avctx->priv_data;
 
-    avctx->coded_frame = (AVFrame*)&a->picture;
+    avctx->coded_frame = &a->picture;
     a->avctx = avctx;
 
     return 0;
@@ -53,7 +53,7 @@ static int decode_frame(AVCodecContext *avctx,
     CLJRContext * const a = avctx->priv_data;
     GetBitContext gb;
     AVFrame *picture = data;
-    AVFrame * const p= (AVFrame*)&a->picture;
+    AVFrame * const p = &a->picture;
     int x, y;
 
     if(p->data[0])
@@ -89,7 +89,7 @@ static int decode_frame(AVCodecContext *avctx,
         }
     }
 
-    *picture= *(AVFrame*)&a->picture;
+    *picture = a->picture;
     *data_size = sizeof(AVPicture);
 
     emms_c();