Commit 694be29f authored by Sebastien Zwickert's avatar Sebastien Zwickert Committed by Diego Biurrun

vda: better frame allocation

Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent dc87ac55
...@@ -144,7 +144,7 @@ static void vda_decoder_callback(void *vda_hw_ctx, ...@@ -144,7 +144,7 @@ static void vda_decoder_callback(void *vda_hw_ctx,
vda_frame *new_frame; vda_frame *new_frame;
vda_frame *queue_walker; vda_frame *queue_walker;
if (!(new_frame = av_mallocz(sizeof(vda_frame)))) if (!(new_frame = av_mallocz(sizeof(*new_frame))))
return; return;
new_frame->next_frame = NULL; new_frame->next_frame = NULL;
new_frame->cv_buffer = CVPixelBufferRetain(image_buffer); new_frame->cv_buffer = CVPixelBufferRetain(image_buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment