diff options
author | Damiano Galassi <[email protected]> | 2019-06-07 12:35:03 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-06-07 12:35:03 +0200 |
commit | 703fbc82f6c1d25ec9df123d4257953279e3e8a3 (patch) | |
tree | a9af67e61399f24edf3917e18661967ed6a501cf | |
parent | 21e20f75d62c795f5e437f57068bd14923a45019 (diff) |
MacGui: use HB_VCODEC_X264_MASK to check whether x264 is selected or not.
-rw-r--r-- | macosx/HBVideo+UIAdditions.m | 2 | ||||
-rw-r--r-- | macosx/HBVideo.m | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBVideo+UIAdditions.m b/macosx/HBVideo+UIAdditions.m index 1b2aef339..aaad74ad9 100644 --- a/macosx/HBVideo+UIAdditions.m +++ b/macosx/HBVideo+UIAdditions.m @@ -81,7 +81,7 @@ - (BOOL)fastDecodeSupported { - if (self.encoder != HB_VCODEC_X264) + if (!(self.encoder & HB_VCODEC_X264_MASK)) { return NO; } 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])]; } |