Browse Source

Merge commit '80f955c90867561dcce769216bc497e13281eb38'

* commit '80f955c90867561dcce769216bc497e13281eb38':
  vda: Check the correct pointer for buffer allocation

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
daff49ccf3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vda_h264.c

+ 1
- 1
libavcodec/vda_h264.c View File

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


Loading…
Cancel
Save