diff options
author | jbrjake <[email protected]> | 2007-12-08 18:15:38 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2007-12-08 18:15:38 +0000 |
commit | 63ee07ac2348ba5e4e47834656e1941df96814e1 (patch) | |
tree | 69be429c8b23ac79e9e0cfef5b11a3a1e4578a81 /libhb/work.c | |
parent | f23b40d16b3a9dec9b5d420e402e7c4fb988ae4a (diff) |
Adds extra, user-selectable dynamic range compression to the liba52 interface, making softer sounds louder. Based on code from liba52's A52Decoder, used in Perian's preferences pane. Set with a job->dynamic_range_compression float, with valid values being 1.0 - 4.0.
Controlled from the CLI with --dynamic-range-compression or -D.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1108 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index 19c498f0f..daabf9962 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -324,6 +324,9 @@ static void do_job( hb_job_t * job, int cpu_count ) "faac" : ( ( job->acodec & HB_ACODEC_LAME ) ? "lame" : "vorbis" ) ); } + + if ( job->dynamic_range_compression ) + hb_log(" + dynamic range compression: %f", job->dynamic_range_compression); /* if we are doing AC3 passthru, then remove any non-AC3 audios from the job */ /* otherwise, Bad Things will happen */ |