Commit 80f955c9 authored by Luca Barbato's avatar Luca Barbato

vda: Check the correct pointer for buffer allocation

CC: libav-stable@libav.org
Found-By: kropping
parent 76d4c627
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment