[FFmpeg-cvslog] nvenc: Fix error log

Yogender Gupta git at videolan.org
Thu Mar 23 13:11:38 EET 2017


ffmpeg | branch: master | Yogender Gupta <ygupta at nvidia.com> | Thu Oct  6 15:02:26 2016 +0530| [cbd84b8a51aa656d71b7d6ed44bd89041ff081a8] | committer: Luca Barbato

nvenc: Fix error log

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

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

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

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 9c35bd0..d5bfd74 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -928,7 +928,7 @@ static int nvenc_setup_encoder(AVCodecContext *avctx)
 
     ret = nv->nvEncInitializeEncoder(ctx->nvenc_ctx, &ctx->params);
     if (ret != NV_ENC_SUCCESS)
-        return nvenc_print_error(avctx, ret, "Cannot initialize the decoder");
+        return nvenc_print_error(avctx, ret, "InitializeEncoder failed");
 
     cpb_props = ff_add_cpb_side_data(avctx);
     if (!cpb_props)



More information about the ffmpeg-cvslog mailing list