Commit daff49cc authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '80f955c9'

* commit '80f955c9':
  vda: Check the correct pointer for buffer allocation
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 3ffa3858 80f955c9
......@@ -409,7 +409,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