summaryrefslogtreecommitdiffstats
path: root/macosx/HBVideo+UIAdditions.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-06-13 13:04:02 +0200
committerDamiano Galassi <[email protected]>2018-06-13 13:04:02 +0200
commitbe9c7a2def8a9380a2ff43d47ed6d1af24541fff (patch)
treea53932e0d01935ac1fc4d943515c5e49090f2505 /macosx/HBVideo+UIAdditions.m
parent43e589346b065eae3dca53a439ef873e8a271c7a (diff)
MacGui: fix x264 unparsed string and advanced panel.
Diffstat (limited to 'macosx/HBVideo+UIAdditions.m')
-rw-r--r--macosx/HBVideo+UIAdditions.m6
1 files 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