[FFmpeg-cvslog] nvenc: Fix NV12 input

Luca Barbato git at videolan.org
Sat Jun 27 00:08:38 CEST 2015


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Fri Jun 26 02:08:42 2015 +0300| [92fdc80cab2acad9f171ba38a08aa89b392bdadd] | committer: Luca Barbato

nvenc: Fix NV12 input

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92fdc80cab2acad9f171ba38a08aa89b392bdadd
---

 libavcodec/nvenc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index e725e3d..ea260b0 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,



More information about the ffmpeg-cvslog mailing list