diff options
-rw-r--r-- | macosx/Controller.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index e014eb312..189b6ec51 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1909,8 +1909,10 @@ list = hb_get_titles( fHandle ); - (IBAction) TwoPassCheckboxChanged: (id) sender { /* check to see if x264 is chosen */ - if(([fDstFormatPopUp indexOfSelectedItem] == 0 && [fDstCodecsPopUp indexOfSelectedItem] == 1) || ([fDstFormatPopUp indexOfSelectedItem] == 1 && ([fDstCodecsPopUp indexOfSelectedItem] == 2 || [fDstCodecsPopUp indexOfSelectedItem] == 3))) - { + int format = [fDstFormatPopUp indexOfSelectedItem]; + int codecs = [fDstCodecsPopUp indexOfSelectedItem]; + if( ( FormatSettings[format][codecs] & HB_VCODEC_X264 ) ) + { if( [fVidTwoPassCheck state] == NSOnState) { [fVidTurboPassCheck setHidden: NO]; |