mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-08 23:58:51 +00:00
nvenc: Fix NV12 input
This commit is contained in:
parent
072756cdd2
commit
92fdc80cab
@ -881,9 +881,9 @@ static int nvenc_copy_frame(NV_ENC_LOCK_INPUT_BUFFER *in, const AVFrame *frame)
|
|||||||
frame->width, frame->height);
|
frame->width, frame->height);
|
||||||
buf += off;
|
buf += off;
|
||||||
|
|
||||||
av_image_copy_plane(buf, in->pitch >> 1,
|
av_image_copy_plane(buf, in->pitch,
|
||||||
frame->data[1], frame->linesize[1],
|
frame->data[1], frame->linesize[1],
|
||||||
frame->width >> 1, frame->height >> 1);
|
frame->width, frame->height >> 1);
|
||||||
break;
|
break;
|
||||||
case AV_PIX_FMT_YUV444P:
|
case AV_PIX_FMT_YUV444P:
|
||||||
av_image_copy_plane(buf, in->pitch,
|
av_image_copy_plane(buf, in->pitch,
|
||||||
|
Loading…
Reference in New Issue
Block a user