diff options
-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; |