[SCM] libav/experimental: remove useless casts

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:10:53 UTC 2013


The following commit has been merged in the experimental branch:
commit 9a8d73183288ff6bd05d239b950023a64292f2c7
Author: Ivo van Poorten <ivop at euronet.nl>
Date:   Wed Dec 26 16:23:25 2007 +0000

    remove useless casts
    
    Originally committed as revision 11317 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c
index 448f398..20fabb6 100644
--- a/libavcodec/ptx.c
+++ b/libavcodec/ptx.c
@@ -28,8 +28,8 @@ typedef struct PTXContext {
 static int ptx_init(AVCodecContext *avctx) {
     PTXContext *s = avctx->priv_data;
 
-    avcodec_get_frame_defaults((AVFrame*)&s->picture);
-    avctx->coded_frame= (AVFrame*)&s->picture;
+    avcodec_get_frame_defaults(&s->picture);
+    avctx->coded_frame= &s->picture;
     s->picture.data[0] = NULL;
 
     return 0;
@@ -89,7 +89,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
         buf += w*bytes_per_pixel;
     }
 
-    *picture = *(AVFrame *)&s->picture;
+    *picture = s->picture;
     *data_size = sizeof(AVPicture);
 
     return offset + w*h*bytes_per_pixel;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list