[FFmpeg-devel] [PATCH 1/2] lavu/qsv: add log message for libmfx version

Zhong Li zhong.li at intel.com
Thu Dec 28 11:27:32 EET 2017


It is benefit to diagnose issues related to different libmfx version.

Signed-off-by: Zhong Li <zhong.li at intel.com>
---
 libavutil/hwcontext_qsv.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 9b6040b..6228c04 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -1035,6 +1035,10 @@ static int qsv_device_derive_from_child(AVHWDeviceContext *ctx,
         goto fail;
     }
 
+    av_log(ctx, AV_LOG_VERBOSE,
+           "Initialize MFX session: API version is %d.%d, implementation version is %d.%d\n",
+           MFX_VERSION_MAJOR, MFX_VERSION_MINOR, ver.Major, ver.Minor);
+
     MFXClose(hwctx->session);
 
     err = MFXInit(implementation, &ver, &hwctx->session);
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list