Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

vda: better frame allocation.

  • Loading branch information...
commit 02f12de1c25789913b72c98c5bda3d521ede7b8b 1 parent 70f0ffa
Sebastien Zwickert authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  libavcodec/vda_h264.c
View
3  libavcodec/vda_h264.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.