diff options
author | sr55 <[email protected]> | 2021-02-28 11:39:13 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2021-02-28 12:10:15 +0000 |
commit | 8d3d803511cf3aa941e87d206ff165616b571bda (patch) | |
tree | 8fe27737447d0556509c65bf14b36d4ce98e1b56 /libhb | |
parent | 7e097b44def027e95ff4b2c2653fcf0cdc0fc0cf (diff) |
hardware: Signal when hardware support is not compiled in on x86 platforms.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/nvenc_common.c | 4 | ||||
-rw-r--r-- | libhb/qsv_common.c | 2 | ||||
-rw-r--r-- | libhb/vce_common.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libhb/nvenc_common.c b/libhb/nvenc_common.c index fc8ef2d66..f6234d087 100644 --- a/libhb/nvenc_common.c +++ b/libhb/nvenc_common.c @@ -22,7 +22,7 @@ int hb_nvenc_h264_available() #if HB_PROJECT_FEATURE_NVENC return hb_check_nvenc_available(); #else - return 0; + return is_nvenc_available; #endif } @@ -31,7 +31,7 @@ int hb_nvenc_h265_available() #if HB_PROJECT_FEATURE_NVENC return hb_check_nvenc_available(); #else - return 0; + return is_nvenc_available; #endif } diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 5e64d1434..02c960087 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -3646,7 +3646,7 @@ void hb_qsv_context_uninit(hb_job_t *job) int hb_qsv_available() { - return 0; + return -1; } #endif // HB_PROJECT_FEATURE_QSV diff --git a/libhb/vce_common.c b/libhb/vce_common.c index a30755a74..978dc86e1 100644 --- a/libhb/vce_common.c +++ b/libhb/vce_common.c @@ -144,12 +144,12 @@ int hb_vce_h265_available() int hb_vce_h264_available() { - return 0; + return -1; } int hb_vce_h265_available() { - return 0; + return -1; } #endif // HB_PROJECT_FEATURE_VCE |