From: Max Dmytrychenko Date: Wed, 30 Sep 2015 11:00:15 +0000 (+0200) Subject: better usage of MASK for feature detection X-Git-Tag: 1.0.0~898^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a443b665393ab39449a4d1b4437ae114e6522a7;p=handbrake better usage of MASK for feature detection --- diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs b/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs index 21c648525..dc007a072 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs @@ -90,7 +90,7 @@ namespace HandBrake.ApplicationServices.Utilities { try { - return HBFunctions.hb_qsv_available() == NativeConstants.HB_VCODEC_QSV_H264; + return (HBFunctions.hb_qsv_available() && NativeConstants.HB_VCODEC_QSV_H264); } catch (Exception) { @@ -109,7 +109,7 @@ namespace HandBrake.ApplicationServices.Utilities { try { - return HBFunctions.hb_qsv_available() == (NativeConstants.HB_VCODEC_QSV_H264 | NativeConstants.HB_VCODEC_QSV_H265); + return (HBFunctions.hb_qsv_available() && NativeConstants.HB_VCODEC_QSV_H265); } catch (Exception) {