mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/nvenc: use frame size instead of surface size
This commit is contained in:
parent
347cb14b7c
commit
8ebe1dddfb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user