From: Damiano Galassi Date: Thu, 15 Nov 2018 14:04:04 +0000 (+0100) Subject: MacGui: disable two-pass when VideoToolbox is the selected encoder. X-Git-Tag: 1.2.0~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8d66465e9765bd31a82cf55bd0ee6b6782993dc;p=handbrake MacGui: disable two-pass when VideoToolbox is the selected encoder. --- diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index 1119aaa5c..a1fb9bd71 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -296,13 +296,11 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; self.qualityType = 0; } } - else + + if ((self.encoder & HB_VCODEC_FFMPEG_VT_H264) || + (self.encoder & HB_VCODEC_FFMPEG_VT_H265)) { - if ((self.encoder & HB_VCODEC_FFMPEG_VT_H264) || - (self.encoder & HB_VCODEC_FFMPEG_VT_H265)) - { - self.twoPass = NO; - } + self.twoPass = NO; } }