From 8ebe1dddfb5a5e4112f032d55d1a3c961034493d Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Thu, 8 Sep 2016 19:08:31 +0200 Subject: [PATCH] avcodec/nvenc: use frame size instead of surface size --- libavcodec/nvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index bff204d926..e3edd74ab7 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1311,7 +1311,7 @@ static int nvenc_copy_frame(AVCodecContext *avctx, NvencSurface *nv_surface, av_image_copy(dst_data, dst_linesize, (const uint8_t**)frame->data, frame->linesize, frame->format, - nv_surface->width, nv_surface->height); + avctx->width, avctx->height); return 0; }