nvenc: Fix NV12 input
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 25 Jun 2015 23:08:42 +0000 (02:08 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 26 Jun 2015 20:18:24 +0000 (22:18 +0200)
libavcodec/nvenc.c

index e725e3d..ea260b0 100644 (file)
@@ -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,