vda: removes useless casts.
authorSebastien Zwickert <dilaroga@free.fr>
Mon, 14 Nov 2011 20:35:18 +0000 (21:35 +0100)
committerSebastien Zwickert <dilaroga@free.fr>
Mon, 14 Nov 2011 21:24:03 +0000 (22:24 +0100)
libavcodec/vda.c

index 9016768..4675e0b 100644 (file)
@@ -124,7 +124,7 @@ static void vda_decoder_callback (void *vda_hw_ctx,
     if (vda_ctx->cv_pix_fmt_type != CVPixelBufferGetPixelFormatType(image_buffer))
         return;
 
-    new_frame = (vda_frame *)av_mallocz(sizeof(vda_frame));
+    new_frame = av_mallocz(sizeof(vda_frame));
     new_frame->next_frame = NULL;
     new_frame->cv_buffer = CVPixelBufferRetain(image_buffer);
     new_frame->pts = vda_pts_from_dictionary(user_info);
@@ -219,7 +219,7 @@ int ff_vda_create_decoder(struct vda_context *vda_ctx,
     status = VDADecoderCreate( config_info,
                                buffer_attributes,
                                (VDADecoderOutputCallback *)vda_decoder_callback,
-                               (void *)vda_ctx,
+                               vda_ctx,
                                &vda_ctx->decoder );
 
     CFRelease(height);