Permalink
Browse files

vda: better frame allocation.

  • Loading branch information...
1 parent 70f0ffa commit 02f12de1c25789913b72c98c5bda3d521ede7b8b Sebastien Zwickert committed Aug 14, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 libavcodec/vda_h264.c
View
@@ -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;

0 comments on commit 02f12de

Please sign in to comment.