From be9c7a2def8a9380a2ff43d47ed6d1af24541fff Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 13 Jun 2018 13:04:02 +0200 Subject: [PATCH] MacGui: fix x264 unparsed string and advanced panel. --- macosx/HBVideo+UIAdditions.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.40.0