diff options
author | Max Dmytrychenko <[email protected]> | 2015-09-30 13:00:15 +0200 |
---|---|---|
committer | Max Dmytrychenko <[email protected]> | 2015-09-30 13:00:15 +0200 |
commit | 1a443b665393ab39449a4d1b4437ae114e6522a7 (patch) | |
tree | 87cad6fcb0cb80ad8808a60351752d21116f945e /win/CS | |
parent | a28361db34c84f9f6e0d30184655695aec7d5abb (diff) |
better usage of MASK for feature detection
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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)
{
|