OSDN Git Service

MacGui: Fix DPL2 + AC3 mixdown crash if the input audio source is DTS
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 17 Feb 2008 05:08:22 +0000 (05:08 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 17 Feb 2008 05:08:22 +0000 (05:08 +0000)
- Since DTS cannot pass thru AC3, revert to just DPL2

git-svn-id: svn://localhost/HandBrake/trunk@1275 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index f588af5..1492a02 100644 (file)
@@ -2940,7 +2940,7 @@ the user is using "Custom" settings by determining the sender*/
                 }
 
                 /* do we want to add a dolby pro logic 2 (DPL2) option? */
-                if (!mp4AacAc3 && layout == HB_INPUT_CH_LAYOUT_3F2R) {
+                if ((!mp4AacAc3 || audio->codec == HB_ACODEC_DCA) && layout == HB_INPUT_CH_LAYOUT_3F2R) {
                     NSMenuItem *menuItem = [[mixdownPopUp menu] addItemWithTitle:
                         [NSString stringWithCString: hb_audio_mixdowns[3].human_readable_name]
                         action: NULL keyEquivalent: @""];