- used the FormatSettings structure to determine the video codec chosen in the logic
git-svn-id: svn://localhost/HandBrake/trunk@756
b64f7644-9d1e-0410-96f1-
a4d463321fa5
- (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];