libx265: Fix use of uninitialized input picture

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
pull/58/head
Derek Buitenhuis 11 years ago
parent e87974bc00
commit 955544e4d0
  1. 2
      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];

Loading…
Cancel
Save