vda: Check the correct pointer for buffer allocation

CC: libav-stable@libav.org
Found-By: kropping
pull/267/head
Luca Barbato 10 years ago
parent 76d4c62734
commit 80f955c908
  1. 2
      libavcodec/vda_h264.c

@ -359,7 +359,7 @@ static int vda_h264_end_frame(AVCodecContext *avctx)
sizeof(vda->frame),
release_buffer, NULL,
AV_BUFFER_FLAG_READONLY);
if (!frame->buf)
if (!frame->buf[0])
return AVERROR(ENOMEM);
frame->data[3] = (uint8_t*)vda->frame;

Loading…
Cancel
Save