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-13 22:22:20 +0000
commit955544e4d031bd8435cf8f55bdbfe1d0ede01469 (patch)
treeceadd25dfa52234151926b5ff7fa083335674d68
parente87974bc00e997c5844300687a97a11e0dbf6f12 (diff)
downloadffmpeg-955544e4d031bd8435cf8f55bdbfe1d0ede01469.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 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];