summaryrefslogtreecommitdiff
path: root/libavcodec/vda.c
diff options
context:
space:
mode:
authorSebastien Zwickert <dilaroga@free.fr>2011-11-14 21:35:18 +0100
committerSebastien Zwickert <dilaroga@free.fr>2011-11-14 22:24:03 +0100
commitc7fa3eeab97e5b6a2de63f24bcbfb57ea81c5c60 (patch)
tree6c62c447b162fe48b978420fa45853a86047d8aa /libavcodec/vda.c
parent6e1e49385ead7bdc24474fd8b3f435cf6f766cd5 (diff)
vda: removes useless casts.
Diffstat (limited to 'libavcodec/vda.c')
-rw-r--r--libavcodec/vda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vda.c b/libavcodec/vda.c
index 9016768fbf..4675e0b400 100644
--- a/libavcodec/vda.c
+++ b/libavcodec/vda.c
@@ -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);