vda: Check the correct pointer for buffer allocation

CC: libav-stable@libav.org
Found-By: kropping
This commit is contained in:
Luca Barbato 2015-07-03 01:56:16 +02:00
parent 76d4c62734
commit 80f955c908
1 changed files with 1 additions and 1 deletions

View File

@ -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;