Skip to content

Commit

Permalink
better usage of MASK for feature detection, OR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maximd33 committed Sep 30, 2015
1 parent 1a443b6 commit 393f4ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static bool IsQsvAvailableH264
{
try
{
return (HBFunctions.hb_qsv_available() && NativeConstants.HB_VCODEC_QSV_H264);
return (HBFunctions.hb_qsv_available() & NativeConstants.HB_VCODEC_QSV_H264);
}
catch (Exception)
{
Expand All @@ -109,7 +109,7 @@ public static bool IsQsvAvailableH265
{
try
{
return (HBFunctions.hb_qsv_available() && NativeConstants.HB_VCODEC_QSV_H265);
return (HBFunctions.hb_qsv_available() & NativeConstants.HB_VCODEC_QSV_H265);
}
catch (Exception)
{
Expand Down

0 comments on commit 393f4ca

Please sign in to comment.