You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/nvenc: use frame size instead of surface size
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user