aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-02-24 15:13:58 +0100
committerLuca Barbato <lu_zero@gentoo.org>2016-02-26 10:28:42 +0100
commitce9d7da7650473f580dcce8c9f8550ea532aa6bd (patch)
tree29b5aa636a8087601f3a2885266ff243299a558e /libavcodec
parentdbb43b8b83b097585ec255ec638b61e359ebea77 (diff)
downloadffmpeg-ce9d7da7650473f580dcce8c9f8550ea532aa6bd.tar.gz
qsv: Move down the implementation query
The plugin loaded may not match the general implementation capability wise.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/qsv.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index ee6b262f31..3e892e853c 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -101,22 +101,6 @@ int ff_qsv_init_internal_session(AVCodecContext *avctx, mfxSession *session,
return ff_qsv_error(ret);
}
- MFXQueryIMPL(*session, &impl);
-
- switch (MFX_IMPL_BASETYPE(impl)) {
- case MFX_IMPL_SOFTWARE:
- desc = "software";
- break;
- case MFX_IMPL_HARDWARE:
- case MFX_IMPL_HARDWARE2:
- case MFX_IMPL_HARDWARE3:
- case MFX_IMPL_HARDWARE4:
- desc = "hardware accelerated";
- break;
- default:
- desc = "unknown";
- }
-
if (load_plugins && *load_plugins) {
while (*load_plugins) {
mfxPluginUID uid;
@@ -156,6 +140,22 @@ load_plugin_fail:
}
}
+ MFXQueryIMPL(*session, &impl);
+
+ switch (MFX_IMPL_BASETYPE(impl)) {
+ case MFX_IMPL_SOFTWARE:
+ desc = "software";
+ break;
+ case MFX_IMPL_HARDWARE:
+ case MFX_IMPL_HARDWARE2:
+ case MFX_IMPL_HARDWARE3:
+ case MFX_IMPL_HARDWARE4:
+ desc = "hardware accelerated";
+ break;
+ default:
+ desc = "unknown";
+ }
+
av_log(avctx, AV_LOG_VERBOSE,
"Initialized an internal MFX session using %s implementation\n",
desc);