summaryrefslogtreecommitdiff
path: root/libavcodec/vda_h264.c
diff options
context:
space:
mode:
authorSebastien Zwickert <dilaroga@gmail.com>2012-08-14 11:47:39 +0200
committerDiego Biurrun <diego@biurrun.de>2012-08-14 12:48:46 +0200
commit694be29f13622c6b38c747c3bb14c93c95435c4d (patch)
tree37dce81130cc7f30289fad9f1b0772b8c14bea99 /libavcodec/vda_h264.c
parentdc87ac55ab81b7242228cbfba997f627bbeb7349 (diff)
downloadffmpeg-694be29f13622c6b38c747c3bb14c93c95435c4d.tar.gz
vda: better frame allocation
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/vda_h264.c')
-rw-r--r--libavcodec/vda_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c
index 2d2d228745..5c8f5679f9 100644
--- a/libavcodec/vda_h264.c
+++ b/libavcodec/vda_h264.c
@@ -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);