[FFmpeg-cvslog] avcodec/nvenc: use frame size instead of surface size

Timo Rothenpieler git at videolan.org
Thu Sep 8 20:08:43 EEST 2016


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Thu Sep  8 19:08:31 2016 +0200| [8ebe1dddfb5a5e4112f032d55d1a3c961034493d] | committer: Timo Rothenpieler

avcodec/nvenc: use frame size instead of surface size

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

 libavcodec/nvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index bff204d..e3edd74 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list