avcodec/nvenc: use frame size instead of surface size

This commit is contained in:
Timo Rothenpieler 2016-09-08 19:08:31 +02:00
parent 347cb14b7c
commit 8ebe1dddfb
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}