mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 04:54:55 +00:00
vda: better frame allocation
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
parent
dc87ac55ab
commit
694be29f13
@ -144,7 +144,7 @@ static void vda_decoder_callback(void *vda_hw_ctx,
|
||||
vda_frame *new_frame;
|
||||
vda_frame *queue_walker;
|
||||
|
||||
if (!(new_frame = av_mallocz(sizeof(vda_frame))))
|
||||
if (!(new_frame = av_mallocz(sizeof(*new_frame))))
|
||||
return;
|
||||
new_frame->next_frame = NULL;
|
||||
new_frame->cv_buffer = CVPixelBufferRetain(image_buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user