mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vda: better frame allocation.
This commit is contained in:
parent
70f0ffa1ed
commit
02f12de1c2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user