diff options
author | agalin89 <[email protected]> | 2021-02-20 17:56:09 +0000 |
---|---|---|
committer | Scott <[email protected]> | 2021-03-12 19:05:21 +0000 |
commit | 48617ff4455bdc9226957148ffb61d3ad3e29213 (patch) | |
tree | 76017fdfced4098ed1859ceae8da83c3980b6dd2 /libhb/common.c | |
parent | 052e3bc18259984b79c7101ef319955e275d5cd6 (diff) |
qsv: redesigned adapter capabilities collection and reporing
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/common.c b/libhb/common.c index 0eb980468..637d14d0b 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -294,7 +294,7 @@ static int hb_video_encoder_is_enabled(int encoder, int disable_hardware) #if HB_PROJECT_FEATURE_QSV if (encoder & HB_VCODEC_QSV_MASK) { - return hb_qsv_video_encoder_is_enabled(encoder); + return hb_qsv_video_encoder_is_enabled(hb_qsv_get_adapter_index(), encoder); } #endif @@ -3897,6 +3897,7 @@ static void job_setup(hb_job_t * job, hb_title_t * title) job->metadata = hb_metadata_copy( title->metadata ); #if HB_PROJECT_FEATURE_QSV + job->qsv.ctx = hb_qsv_context_init(); job->qsv.enc_info.is_init_done = 0; job->qsv.async_depth = hb_qsv_param_default_async_depth(); job->qsv.decode = !!(title->video_decode_support & |