diff options
author | Rodeo314 <[email protected]> | 2016-03-30 17:28:52 +0200 |
---|---|---|
committer | Rodeo314 <[email protected]> | 2016-03-30 17:28:52 +0200 |
commit | bae2b4aaa7e221aa4c48711fa0f188f4c72d092f (patch) | |
tree | 8f0a6892c751f3c1f2ed9db7279d754892de2d30 | |
parent | cc618a4e2f435690f420a77c81ba8660f8fa4dc6 (diff) | |
parent | 78ac5d119bfa65d1a1611c94bd66152a4c995bff (diff) |
Merge pull request #138 from maximd33/master
QSV: better compatibility with recent SW lib
-rw-r--r-- | libhb/enc_qsv.c | 3 |
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; |