Commit 8ebe1ddd authored by Timo Rothenpieler's avatar Timo Rothenpieler

avcodec/nvenc: use frame size instead of surface size

parent 347cb14b
...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment