From 41836c4e306e572ecf80d5a714aaec532c7ece60 Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Thu, 13 Feb 2014 20:49:05 +0000 Subject: [PATCH] libx265: Fix use of uninitialized input picture Signed-off-by: Derek Buitenhuis --- libavcodec/libx265.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index e63e0cb75d..05ed143c80 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];