From 756b892f17069dd44385f8c085786921fcee3085 Mon Sep 17 00:00:00 2001 From: Max Dmytrychenko Date: Thu, 24 Sep 2015 20:53:55 +0200 Subject: adjustment to report QSV availability in MASK form --- libhb/qsv_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 12f4d5e7b..c50be8901 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -144,8 +144,8 @@ static int qsv_implementation_is_hardware(mfxIMPL implementation) int hb_qsv_available() { - return (hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H264) || - hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H265)); + return (hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H264) ? HB_VCODEC_QSV_H264 : 0 | + hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H265) ? HB_VCODEC_QSV_H265 : 0); } int hb_qsv_video_encoder_is_enabled(int encoder) -- cgit v1.2.3 From a405fbf3d946bd1730eef761f0b43cae04d1ef8f Mon Sep 17 00:00:00 2001 From: Max Dmytrychenko Date: Thu, 24 Sep 2015 21:01:02 +0200 Subject: UI adjustment for MASK usage --- win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs b/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs index ffe00d679..2055fab90 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs @@ -1,4 +1,4 @@ -// -------------------------------------------------------------------------------------------------------------------- +// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // @@ -71,7 +71,7 @@ namespace HandBrake.ApplicationServices.Utilities { try { - return HBFunctions.hb_qsv_available() == 1; + return HBFunctions.hb_qsv_available() != 0; } catch (Exception) { -- cgit v1.2.3