summaryrefslogtreecommitdiff
path: root/libavcodec/vda_h264.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-07-03 01:56:16 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-07-03 01:58:32 +0200
commit80f955c90867561dcce769216bc497e13281eb38 (patch)
tree71fa10ddc1bb41d607592a3ad9b486e89b52b677 /libavcodec/vda_h264.c
parent76d4c62734fbb8a9f497712812f30ff5c27e787f (diff)
vda: Check the correct pointer for buffer allocation
CC: libav-stable@libav.org Found-By: kropping
Diffstat (limited to 'libavcodec/vda_h264.c')
-rw-r--r--libavcodec/vda_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c
index 0692f60809..62ad5e9f8d 100644
--- a/libavcodec/vda_h264.c
+++ b/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;