summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];