diff options
author | Rodeo <[email protected]> | 2013-09-01 08:56:50 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-09-01 08:56:50 +0000 |
commit | 8270fcfeb84a2c6c051a24fcceea534b939eee58 (patch) | |
tree | 92b54f9247185704ccae7a92177412aa8a5fdeeb /libhb/decavcodec.c | |
parent | 4220853ed08a7dd6fb35421a422ff2e7c4bed2b7 (diff) |
QSV: choose and re-use a "preferred" implementation instead of using MFX_IMPL_AUTO_ANY.
This fixes a rare issue where hardware support was detected as available and used in encqsvInit, but MFXInit silently fell back to software in qsv_enc_init (still don't know what that's all about though).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5759 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r-- | libhb/decavcodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 4c1972fdf..d82dbd049 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1187,8 +1187,8 @@ static int decavcodecvInit( hb_work_object_t * w, hb_job_t * job ) if (hb_qsv_decode_is_enabled(job)) { // setup the QSV configuration - pv->qsv_config.impl_requested = MFX_IMPL_AUTO_ANY|MFX_IMPL_VIA_ANY; pv->qsv_config.io_pattern = MFX_IOPATTERN_OUT_OPAQUE_MEMORY; + pv->qsv_config.impl_requested = hb_qsv_impl_get_preferred(); pv->qsv_config.async_depth = job->qsv_async_depth; pv->qsv_config.sync_need = 0; pv->qsv_config.usage_threaded = 1; |