diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2016-09-08 19:08:31 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-09-08 19:08:31 +0200 |
commit | 8ebe1dddfb5a5e4112f032d55d1a3c961034493d (patch) | |
tree | 4b76be111b705031e7d6b193502c454f9e37f177 /libavcodec/nvenc.c | |
parent | 347cb14b7cba7560e53f4434b419b9d8800253e7 (diff) | |
download | ffmpeg-8ebe1dddfb5a5e4112f032d55d1a3c961034493d.tar.gz |
avcodec/nvenc: use frame size instead of surface size
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |