From d6c9dd0ff6b9b707bb9c786a199ba9b6db37be34 Mon Sep 17 00:00:00 2001
From: Yogender Kumar Gupta <yogender.gupta@gmail.com>
Date: Wed, 14 Sep 2016 22:36:19 +0530
Subject: [PATCH] Improve Log for NVENC

---
 libavcodec/nvenc.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index d98d70b..208e4f7 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -212,7 +212,7 @@ static av_cold int nvenc_load_libraries(AVCodecContext *avctx)
     if (err != NV_ENC_SUCCESS)
         return nvenc_print_error(avctx, err, "Failed to create nvenc instance");
 
-    av_log(avctx, AV_LOG_VERBOSE, "Nvenc initialized successfully\n");
+    av_log(avctx, AV_LOG_VERBOSE, "EncodeAPI instance created successfully\n");
 
     return 0;
 }
@@ -235,6 +235,8 @@ static av_cold int nvenc_open_session(AVCodecContext *avctx)
         return nvenc_print_error(avctx, ret, "OpenEncodeSessionEx failed");
     }
 
+    av_log(avctx, AV_LOG_VERBOSE, "Encode session created successfully\n");
+
     return 0;
 }
 
@@ -1037,6 +1039,8 @@ static av_cold int nvenc_setup_encoder(AVCodecContext *avctx)
         return nvenc_print_error(avctx, nv_status, "InitializeEncoder failed");
     }
 
+    av_log(avctx, AV_LOG_VERBOSE, "Encode session initialized successfully\n");
+
     if (ctx->encode_config.frameIntervalP > 1)
         avctx->has_b_frames = 2;
 
-- 
2.9.0.windows.1

