summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-09-15 22:10:57 +0000
committerRodeo <[email protected]>2013-09-15 22:10:57 +0000
commitb112b9861556476f4fcb8650e044f9eba4f15ac4 (patch)
tree7f0cec4bec8e99ce31972ab34508aa95e1fd9dcd /libhb/common.c
parentdf38b4e3b51cd16e1ef7c559717a578852877456 (diff)
QSV: minor refactoring.
Address the easy issues first. Apologies if I broke HandBrakeInterop. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5783 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 66f3b0440..18dd9fc53 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -2885,9 +2885,10 @@ static void job_setup( hb_job_t * job, hb_title_t * title )
job->metadata = hb_metadata_copy( title->metadata );
#ifdef USE_QSV
- job->qsv_enc_info.is_init_done = 0;
- job->qsv_decode = title->qsv_decode_support;
- job->qsv_async_depth = AV_QSV_ASYNC_DEPTH_DEFAULT;
+ job->qsv.enc_info.is_init_done = 0;
+ job->qsv.async_depth = AV_QSV_ASYNC_DEPTH_DEFAULT;
+ job->qsv.decode = !!(title->video_decode_support &
+ HB_DECODE_SUPPORT_QSV);
#endif
}