Skip to content
Snippets Groups Projects
Commit 4590e161 authored by Sebastien Zwickert's avatar Sebastien Zwickert
Browse files

vda: check allocation result.

parent c7fa3eea
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,9 @@ static void vda_decoder_callback (void *vda_hw_ctx,
return;
new_frame = av_mallocz(sizeof(vda_frame));
if (!new_frame)
return;
new_frame->next_frame = NULL;
new_frame->cv_buffer = CVPixelBufferRetain(image_buffer);
new_frame->pts = vda_pts_from_dictionary(user_info);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment