[FFmpeg-cvslog] vda: Check the correct pointer for buffer allocation
Luca Barbato
git at videolan.org
Fri Jul 3 04:37:02 CEST 2015
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Fri Jul 3 01:56:16 2015 +0200| [80f955c90867561dcce769216bc497e13281eb38] | committer: Luca Barbato
vda: Check the correct pointer for buffer allocation
CC: libav-stable at libav.org
Found-By: kropping
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=80f955c90867561dcce769216bc497e13281eb38
---
libavcodec/vda_h264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c
index 0692f60..62ad5e9 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;
More information about the ffmpeg-cvslog
mailing list