From: jbrjake Date: Sun, 2 Dec 2007 19:14:12 +0000 (+0000) Subject: Patch liba52's downmixer to apply bias when going from 5.1 to Pro Logic 2, per rev49... X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=b6aefda717bad76d819f1d010f03d52ca6fee3e9;p=handbrake-jp%2Fhandbrake-jp-git.git Patch liba52's downmixer to apply bias when going from 5.1 to Pro Logic 2, per rev49 of a52codec (thanks for the fix, gbooker!). This will make dpl2 downmixes play at a louder, more natural volume. git-svn-id: svn://localhost/HandBrake/trunk@1094 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/contrib/patch-a52dec.patch b/contrib/patch-a52dec.patch index 9eaf34ff..cf1c8a64 100644 --- a/contrib/patch-a52dec.patch +++ b/contrib/patch-a52dec.patch @@ -81,8 +81,8 @@ diff -Naur a52dec_original/liba52/downmix.c a52dec_patched/liba52/downmix.c + Lss = (LEVEL_SQRT_3_4 * Ls) - (LEVEL_SQRT_1_2 * Rs); + Rss = -(LEVEL_SQRT_1_2 * Ls) + (LEVEL_SQRT_3_4 * Rs); + -+ samples[i] = Lt + Lss; -+ samples[i + 256] = Rt + Rss; ++ samples[i] = bias + Lt + Lss; ++ samples[i + 256] = bias + Rt + Rss; + + } +