summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-07-27 19:35:19 +0000
committerdynaflash <[email protected]>2007-07-27 19:35:19 +0000
commite0162985fe4a68370a10fa5d2545518b90b74fa8 (patch)
tree63892d04d87e092d68bed47c71b794b68c4b4a8a /macosx
parent22a0c8245babd5e3eea2d7df303c7283a932d4e9 (diff)
MacGui: Enable Turbo 2 pass for MKV x264
- used the FormatSettings structure to determine the video codec chosen in the logic git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@756 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.mm6
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];