summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-06-26 02:08:42 +0300
committerLuca Barbato <lu_zero@gentoo.org>2015-06-26 22:18:24 +0200
commit92fdc80cab2acad9f171ba38a08aa89b392bdadd (patch)
tree5618abbcd246ec892213c0604d0edb3fd3cdc57a /libavcodec/nvenc.c
parent072756cdd2f949462520041e357f52f15d8c274d (diff)
nvenc: Fix NV12 input
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index e725e3d8e6..ea260b0c87 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -881,9 +881,9 @@ static int nvenc_copy_frame(NV_ENC_LOCK_INPUT_BUFFER *in, const AVFrame *frame)
frame->width, frame->height);
buf += off;
- av_image_copy_plane(buf, in->pitch >> 1,
+ av_image_copy_plane(buf, in->pitch,
frame->data[1], frame->linesize[1],
- frame->width >> 1, frame->height >> 1);
+ frame->width, frame->height >> 1);
break;
case AV_PIX_FMT_YUV444P:
av_image_copy_plane(buf, in->pitch,