Browse Source

vda: check allocation result.

tags/n0.9
Sebastien Zwickert 14 years ago
parent
commit
4590e161e6
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/vda.c

+ 3
- 0
libavcodec/vda.c View File

@@ -125,6 +125,9 @@ static void vda_decoder_callback (void *vda_hw_ctx,
return;

new_frame = av_mallocz(sizeof(vda_frame));
if (!new_frame)
return;

new_frame->next_frame = NULL;
new_frame->cv_buffer = CVPixelBufferRetain(image_buffer);
new_frame->pts = vda_pts_from_dictionary(user_info);


Loading…
Cancel
Save