OSDN Git Service

Patch liba52's downmixer to apply bias when going from 5.1 to Pro Logic 2, per rev49...
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 2 Dec 2007 19:14:12 +0000 (19:14 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 2 Dec 2007 19:14:12 +0000 (19:14 +0000)
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

contrib/patch-a52dec.patch

index 9eaf34f..cf1c8a6 100644 (file)
@@ -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;
 +      
 +              }
 +