[FFmpeg-cvslog] cljr: remove useless casts

Mans Rullgard git at videolan.org
Fri Dec 9 00:18:56 CET 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Dec  8 14:50:48 2011 +0000| [bbc10185eef0b5c1ad52bf19c666e42429d4b07e] | committer: Mans Rullgard

cljr: remove useless casts

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bbc10185eef0b5c1ad52bf19c666e42429d4b07e
---

 libavcodec/cljr.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c
index b418647..6071807 100644
--- a/libavcodec/cljr.c
+++ b/libavcodec/cljr.c
@@ -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();



More information about the ffmpeg-cvslog mailing list