From e23190269fb6e8217d080918893641ba3e0e3556 Mon Sep 17 00:00:00 2001 From: Zhong Li Date: Thu, 28 Dec 2017 17:38:32 +0800 Subject: [PATCH] lavu/qsv: add log message for libmfx version It is benefit to diagnose issues related to different libmfx version. Signed-off-by: Zhong Li Signed-off-by: Luca Barbato --- libavutil/hwcontext_qsv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 5018a05b9a..9270b2258f 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c @@ -1036,6 +1036,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);