]> granicus.if.org Git - handbrake/commitdiff
better usage of MASK for feature detection
authorMax Dmytrychenko <maxim.d33@gmail.com>
Wed, 30 Sep 2015 11:00:15 +0000 (13:00 +0200)
committerMax Dmytrychenko <maxim.d33@gmail.com>
Wed, 30 Sep 2015 11:00:15 +0000 (13:00 +0200)
win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs

index 21c6485250e2391f3b27c577c0655d17607e82e7..dc007a0720d3091daf9b6f35573e350d23ebdde6 100644 (file)
@@ -90,7 +90,7 @@ namespace HandBrake.ApplicationServices.Utilities
             {\r
                 try\r
                 {\r
-                    return HBFunctions.hb_qsv_available() == NativeConstants.HB_VCODEC_QSV_H264;\r
+                    return (HBFunctions.hb_qsv_available() && NativeConstants.HB_VCODEC_QSV_H264);\r
                 }\r
                 catch (Exception)\r
                 {\r
@@ -109,7 +109,7 @@ namespace HandBrake.ApplicationServices.Utilities
             {\r
                 try\r
                 {\r
-                    return HBFunctions.hb_qsv_available() == (NativeConstants.HB_VCODEC_QSV_H264 | NativeConstants.HB_VCODEC_QSV_H265);\r
+                    return (HBFunctions.hb_qsv_available() && NativeConstants.HB_VCODEC_QSV_H265);\r
                 }\r
                 catch (Exception)\r
                 {\r