summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-11-05 20:12:31 +0000
committerjstebbins <[email protected]>2010-11-05 20:12:31 +0000
commit4f9afabcd99a47c9914768363c213346c8f56ecb (patch)
treeb65d1f379d5b32770e4d863b365dc6f88b223701 /libhb/common.c
parent8f8ef175e85add6408063a2a36a0531def2714de (diff)
Fix hb_get_best_mixdown to allow downmixing 7.1 to 5.1
Use hb_get_best_mixdown in places in the LinGui that were duplicating code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3648 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 9c6120a44..776d0a7ca 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -318,7 +318,9 @@ int hb_get_best_mixdown( uint32_t codec, int layout, int mixdown )
best_mixdown = HB_AMIXDOWN_DOLBYPLII;
break;
- // 5 or 6 channel discrete
+ // 5, 6, 7, or 8 channel discrete
+ case HB_INPUT_CH_LAYOUT_4F2R:
+ case HB_INPUT_CH_LAYOUT_3F4R:
case HB_INPUT_CH_LAYOUT_3F2R:
if ( ! ( layout & HB_INPUT_CH_LAYOUT_HAS_LFE ) )
{