diff options
author | agalin89 <[email protected]> | 2021-03-21 14:48:48 +0000 |
---|---|---|
committer | Scott <[email protected]> | 2021-03-21 22:21:36 +0000 |
commit | 126013c87d2069b36dce86a5a11996f92a6593a8 (patch) | |
tree | 532eefbaf01f6ae3128281c8ac27dfa717e3b547 /libhb/decavcodec.c | |
parent | 9f505305c87f758394c4813f4ee4a4ba5e44e73b (diff) |
qsv: fix adapter details info when multiple runs
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r-- | libhb/decavcodec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 08c82d5f5..b95a848e2 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -2132,8 +2132,11 @@ static int decavcodecvInfo( hb_work_object_t *w, hb_work_info_t *info ) info->video_decode_support = HB_DECODE_SUPPORT_SW; #if HB_PROJECT_FEATURE_QSV - if (hb_qsv_decode_codec_supported_codec(hb_qsv_get_adapter_index(), pv->context->codec_id, pv->context->pix_fmt)) - info->video_decode_support |= HB_DECODE_SUPPORT_QSV; + if (hb_qsv_available()) + { + if (hb_qsv_decode_codec_supported_codec(hb_qsv_get_adapter_index(), pv->context->codec_id, pv->context->pix_fmt)) + info->video_decode_support |= HB_DECODE_SUPPORT_QSV; + } #endif return 1; |