diff options
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libhb/work.c b/libhb/work.c index 94ebe889b..65532361f 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -141,6 +141,9 @@ static void work_func( void * _work ) hb_job_close(&job); job = new_job; } +#if HB_PROJECT_FEATURE_QSV + hb_qsv_setup_job(job); +#endif hb_job_setup_passes(job->h, job, passes); hb_job_close(&job); @@ -871,7 +874,7 @@ static int get_best_pix_ftm(hb_job_t * job) { int bit_depth = hb_get_bit_depth(job->title->pix_fmt); #if HB_PROJECT_FEATURE_QSV && (defined( _WIN32 ) || defined( __MINGW32__ )) - if (hb_qsv_info_get(job->vcodec)) + if (hb_qsv_encoder_info_get(hb_qsv_get_adapter_index(), job->vcodec)) { if (hb_qsv_full_path_is_enabled(job)) { @@ -1461,7 +1464,6 @@ static void do_job(hb_job_t *job) #if HB_PROJECT_FEATURE_QSV if (hb_qsv_is_enabled(job)) { - job->qsv.ctx = hb_qsv_context_init(); #if HB_PROJECT_FEATURE_QSV && (defined( _WIN32 ) || defined( __MINGW32__ )) if (hb_qsv_full_path_is_enabled(job)) { |