Skip to content
Snippets Groups Projects
Commit 8ebe1ddd authored by Timo Rothenpieler's avatar Timo Rothenpieler
Browse files

avcodec/nvenc: use frame size instead of surface size

parent 347cb14b
Branches
Tags
No related merge requests found
...@@ -1311,7 +1311,7 @@ static int nvenc_copy_frame(AVCodecContext *avctx, NvencSurface *nv_surface, ...@@ -1311,7 +1311,7 @@ static int nvenc_copy_frame(AVCodecContext *avctx, NvencSurface *nv_surface,
av_image_copy(dst_data, dst_linesize, av_image_copy(dst_data, dst_linesize,
(const uint8_t**)frame->data, frame->linesize, frame->format, (const uint8_t**)frame->data, frame->linesize, frame->format,
nv_surface->width, nv_surface->height); avctx->width, avctx->height);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment