Commit 02f12de1 authored by Sebastien Zwickert's avatar Sebastien Zwickert

vda: better frame allocation.

parent 70f0ffa1
......@@ -144,8 +144,7 @@ static void vda_decoder_callback (void *vda_hw_ctx,
vda_frame *new_frame;
vda_frame *queue_walker;
new_frame = av_mallocz(sizeof(vda_frame));
if (!new_frame)
if (!(new_frame = av_mallocz(sizeof(*new_frame))))
return;
new_frame->next_frame = NULL;
......
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