diff options
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index e698a0ee9..6cf95624c 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -2621,11 +2621,22 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It break; case HB_ACODEC_VORBIS: + if ([[fAudTrack1MixPopUp selectedItem] tag] == HB_AMIXDOWN_6CH || [[fAudTrack2MixPopUp selectedItem] tag] == HB_AMIXDOWN_6CH) + { + /* Vorbis causes a crash if we use a bitrate below 192 kbps with 6 channel */ + minbitrate = 192; + /* If either mixdown popup includes 6-channel discrete, then allow up to 384 kbps */ + maxbitrate = 384; + break; + } + else + { /* Vorbis causes a crash if we use a bitrate below 48 kbps */ minbitrate = 48; /* Vorbis can cope with 384 kbps quite happily, even for stereo */ maxbitrate = 384; break; + } default: /* AC3 passthru disables the bitrate dropdown anyway, so we might as well just use the min and max bitrate */ |