We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f0ffa commit 02f12deCopy full SHA for 02f12de
libavcodec/vda_h264.c
@@ -144,8 +144,7 @@ static void vda_decoder_callback (void *vda_hw_ctx,
144
vda_frame *new_frame;
145
vda_frame *queue_walker;
146
147
- new_frame = av_mallocz(sizeof(vda_frame));
148
- if (!new_frame)
+ if (!(new_frame = av_mallocz(sizeof(*new_frame))))
149
return;
150
151
new_frame->next_frame = NULL;
0 commit comments