From: Damiano Galassi Date: Wed, 13 Jun 2018 11:04:02 +0000 (+0200) Subject: MacGui: fix x264 unparsed string and advanced panel. X-Git-Tag: 1.2.0~322 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be9c7a2def8a9380a2ff43d47ed6d1af24541fff;p=handbrake MacGui: fix x264 unparsed string and advanced panel. --- diff --git a/macosx/HBVideo+UIAdditions.m b/macosx/HBVideo+UIAdditions.m index 46667a82e..b16572990 100644 --- a/macosx/HBVideo+UIAdditions.m +++ b/macosx/HBVideo+UIAdditions.m @@ -418,7 +418,7 @@ - (BOOL)isUnparsedSupported:(int)encoder { - return encoder & HB_VCODEC_X264_MASK; + return (encoder & HB_VCODEC_X264_MASK) != 0; } - (BOOL)isPresetSystemSupported:(int)encoder { @@ -427,12 +427,12 @@ - (BOOL)isSimpleOptionsPanelSupported:(int)encoder { - return encoder & HB_VCODEC_FFMPEG_MASK; + return (encoder & HB_VCODEC_FFMPEG_MASK) != 0; } - (BOOL)isOldAdvancedPanelSupported:(int)encoder { - return encoder & HB_VCODEC_X264_MASK; + return (encoder & HB_VCODEC_X264_MASK) != 0; } - (void)qualityLimitsForEncoder:(int)encoder low:(float *)low high:(float *)high granularity:(float *)granularity direction:(int *)direction