summaryrefslogtreecommitdiffstats
path: root/macosx/HBVideo.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-06-07 12:35:03 +0200
committerDamiano Galassi <[email protected]>2019-06-07 12:35:03 +0200
commit703fbc82f6c1d25ec9df123d4257953279e3e8a3 (patch)
treea9af67e61399f24edf3917e18661967ed6a501cf /macosx/HBVideo.m
parent21e20f75d62c795f5e437f57068bd14923a45019 (diff)
MacGui: use HB_VCODEC_X264_MASK to check whether x264 is selected or not.
Diffstat (limited to 'macosx/HBVideo.m')
-rw-r--r--macosx/HBVideo.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m
index 997c88bf7..ede51fe98 100644
--- a/macosx/HBVideo.m
+++ b/macosx/HBVideo.m
@@ -333,7 +333,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
self.level = levels.firstObject;
}
- if (self.encoder != HB_VCODEC_X264)
+ if (!(self.encoder & HB_VCODEC_X264_MASK))
{
self.fastDecode = NO;
}
@@ -395,7 +395,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
for (int i = 0; tunes != NULL && tunes[i] != NULL; i++)
{
// we filter out "fastdecode" as we have a dedicated checkbox for it
- if (self.encoder != HB_VCODEC_X264 || strcasecmp(tunes[i], "fastdecode") != 0)
+ if (!(self.encoder & HB_VCODEC_X264_MASK) || strcasecmp(tunes[i], "fastdecode") != 0)
{
[temp addObject:@(tunes[i])];
}