From 955544e4d031bd8435cf8f55bdbfe1d0ede01469 Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Thu, 13 Feb 2014 20:49:05 +0000 Subject: libx265: Fix use of uninitialized input picture Signed-off-by: Derek Buitenhuis --- libavcodec/libx265.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/libx265.c') diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index d37fa1554c..968683606d 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -182,6 +182,8 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, int ret; int i; + x265_picture_init(ctx->params, &x265pic); + if (pic) { for (i = 0; i < 3; i++) { x265pic.planes[i] = pic->data[i]; -- cgit v1.2.3