You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
vda: check allocation result.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user