From 9e3a42cb43f64368c1d804fd5d9a6f61c2305a42 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Wed, 20 Jun 2012 15:26:32 +0000 Subject: hb_get_best_mixdown: fix bug introduced in revision 4755. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4757 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/common.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libhb/common.c') diff --git a/libhb/common.c b/libhb/common.c index 6d4d5ee5e..aba940619 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -724,7 +724,14 @@ int hb_get_best_mixdown(uint32_t codec, int layout, int mixdown) { // full 3F2R, possibly with additional channels, and an LFE // limiting factor: liba52, libdca (can't upmix) - best_mixdown = HB_AMIXDOWN_6CH; + if (codec == HB_ACODEC_LAME || codec == HB_ACODEC_FFAAC) + { + best_mixdown = HB_AMIXDOWN_DOLBYPLII; + } + else + { + best_mixdown = HB_AMIXDOWN_6CH; + } } else if ((layout & AV_CH_LAYOUT_5POINT0) == AV_CH_LAYOUT_5POINT0 || (layout & AV_CH_LAYOUT_5POINT0_BACK) == AV_CH_LAYOUT_5POINT0_BACK) -- cgit v1.2.3