summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
diff options
context:
space:
mode:
authoreddyg <[email protected]>2008-02-18 22:57:44 +0000
committereddyg <[email protected]>2008-02-18 22:57:44 +0000
commitc5da5eb897dc47dc8ae22a5af4f9c6669f6b5259 (patch)
tree9ebdf9600bf13839da7a42e63da2800263c62fe9 /macosx/Controller.mm
parent00cb00b5d1b8d5e704b03425d6f16f506cce61e4 (diff)
Sanity check the input codec is AC3 when selecting AC3 pass through to avoid crash when it is mpega or lpcm etc.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1290 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r--macosx/Controller.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 7535b4530..362f349cc 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -2929,7 +2929,7 @@ the user is using "Custom" settings by determining the sender*/
/* do we want to add a stereo option? */
/* offer stereo if we have a mono source and non-mono-supporting codecs, as otherwise we won't have a mixdown at all */
/* also offer stereo if we have a stereo-or-better source */
- if ((!mp4AacAc3 && ((layout == HB_INPUT_CH_LAYOUT_MONO && audioCodecsSupportMono == 0) || layout >= HB_INPUT_CH_LAYOUT_STEREO))) {
+ if (((!mp4AacAc3 || audio->codec == HB_ACODEC_MPGA || audio->codec == HB_ACODEC_LPCM || audio->codec == HB_ACODEC_DCA) && ((layout == HB_INPUT_CH_LAYOUT_MONO && audioCodecsSupportMono == 0) || layout >= HB_INPUT_CH_LAYOUT_STEREO))) {
NSMenuItem *menuItem = [[mixdownPopUp menu] addItemWithTitle:
[NSString stringWithCString: hb_audio_mixdowns[1].human_readable_name]
action: NULL keyEquivalent: @""];