]> granicus.if.org Git - handbrake/commitdiff
MacGui: fix x264 unparsed string and advanced panel.
authorDamiano Galassi <damiog@gmail.com>
Wed, 13 Jun 2018 11:04:02 +0000 (13:04 +0200)
committerDamiano Galassi <damiog@gmail.com>
Wed, 13 Jun 2018 11:04:02 +0000 (13:04 +0200)
macosx/HBVideo+UIAdditions.m

index 46667a82ea07dd739ee558cd3f78dffe78e2ec56..b16572990c8e89c8c332f6698e6d28a735719feb 100644 (file)
 
 - (BOOL)isUnparsedSupported:(int)encoder
 {
-    return encoder & HB_VCODEC_X264_MASK;
+    return (encoder & HB_VCODEC_X264_MASK) != 0;
 }
 - (BOOL)isPresetSystemSupported:(int)encoder
 {
 
 - (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