summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo314 <[email protected]>2016-03-30 17:28:52 +0200
committerRodeo314 <[email protected]>2016-03-30 17:28:52 +0200
commitbae2b4aaa7e221aa4c48711fa0f188f4c72d092f (patch)
tree8f0a6892c751f3c1f2ed9db7279d754892de2d30
parentcc618a4e2f435690f420a77c81ba8660f8fa4dc6 (diff)
parent78ac5d119bfa65d1a1611c94bd66152a4c995bff (diff)
Merge pull request #138 from maximd33/master
QSV: better compatibility with recent SW lib
-rw-r--r--libhb/enc_qsv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c
index 87a180629..48e4c845e 100644
--- a/libhb/enc_qsv.c
+++ b/libhb/enc_qsv.c
@@ -1404,7 +1404,8 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job)
}
// AsyncDepth has now been set and/or modified by Media SDK
- pv->max_async_depth = videoParam.AsyncDepth;
+ // fall back to default if zero
+ pv->max_async_depth = videoParam.AsyncDepth ? videoParam.AsyncDepth : AV_QSV_ASYNC_DEPTH_DEFAULT;
pv->async_depth = 0;
return 0;