mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
vda: removes useless casts.
This commit is contained in:
parent
6e1e49385e
commit
c7fa3eeab9
@ -124,7 +124,7 @@ static void vda_decoder_callback (void *vda_hw_ctx,
|
|||||||
if (vda_ctx->cv_pix_fmt_type != CVPixelBufferGetPixelFormatType(image_buffer))
|
if (vda_ctx->cv_pix_fmt_type != CVPixelBufferGetPixelFormatType(image_buffer))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
new_frame = (vda_frame *)av_mallocz(sizeof(vda_frame));
|
new_frame = av_mallocz(sizeof(vda_frame));
|
||||||
new_frame->next_frame = NULL;
|
new_frame->next_frame = NULL;
|
||||||
new_frame->cv_buffer = CVPixelBufferRetain(image_buffer);
|
new_frame->cv_buffer = CVPixelBufferRetain(image_buffer);
|
||||||
new_frame->pts = vda_pts_from_dictionary(user_info);
|
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,
|
status = VDADecoderCreate( config_info,
|
||||||
buffer_attributes,
|
buffer_attributes,
|
||||||
(VDADecoderOutputCallback *)vda_decoder_callback,
|
(VDADecoderOutputCallback *)vda_decoder_callback,
|
||||||
(void *)vda_ctx,
|
vda_ctx,
|
||||||
&vda_ctx->decoder );
|
&vda_ctx->decoder );
|
||||||
|
|
||||||
CFRelease(height);
|
CFRelease(height);
|
||||||
|
Loading…
Reference in New Issue
Block a user