diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2014-02-14 00:49:05 +0400 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2014-02-14 02:22:20 +0400 |
commit | 955544e4d031bd8435cf8f55bdbfe1d0ede01469 (patch) | |
tree | ceadd25dfa52234151926b5ff7fa083335674d68 /libavcodec/libx265.c | |
parent | e87974bc00e997c5844300687a97a11e0dbf6f12 (diff) |
libx265: Fix use of uninitialized input picture
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/libx265.c')
-rw-r--r-- | libavcodec/libx265.c | 2 |
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]; |