diff options
author | jbrjake <[email protected]> | 2007-12-02 19:14:12 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2007-12-02 19:14:12 +0000 |
commit | fa3c2e88d2e8610686cfca9a36a4c0382caf90a1 (patch) | |
tree | 1edaf51d417fee170aae34d7487fed31d32f6fa8 | |
parent | 282203512f88da3130ec11ebcc575d83db6a2c74 (diff) |
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://svn.handbrake.fr/HandBrake/trunk@1094 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | contrib/patch-a52dec.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/patch-a52dec.patch b/contrib/patch-a52dec.patch index 9eaf34ffd..cf1c8a64a 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; + + } + |