aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-02-13 20:49:05 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-02-14 14:27:45 +0000
commit41836c4e306e572ecf80d5a714aaec532c7ece60 (patch)
tree89a0b9897f7dcd93c88a3ab5772e3ff76f7dbd64
parent0b9716c45568890dd1ff1b7cc5946c59eb3452e5 (diff)
downloadffmpeg-41836c4e306e572ecf80d5a714aaec532c7ece60.tar.gz
libx265: Fix use of uninitialized input picture
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r--libavcodec/libx265.c2
1 files changed, 2 insertions, 0 deletions
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];