summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-08-01 23:05:00 +0000
committerjstebbins <[email protected]>2012-08-01 23:05:00 +0000
commitad257c9dac38fe3f7502b1058247b4458465c0a8 (patch)
treec142e7b68aa0406b64e77a7f844b0622172fc5c9 /libhb/common.c
parentdbec0d898d37f3b9a1fed8158543115fbdb3ce91 (diff)
libhb: Allow control of audio mix normalization
Since switching to libavresample for audio mixing, our output volume levels have been reduced because libavresample does mix level normalization by default. This change applies a patch to libav to allow us to disable this behavior and adds a new field to hb_audio_config_t to allow the hb frontends to control this feature. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4884 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 13a2e1d95..9ff9f44a3 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -1637,6 +1637,7 @@ void hb_audio_config_init(hb_audio_config_t * audiocfg)
audiocfg->out.mixdown = HB_INVALID_AMIXDOWN;
audiocfg->out.dynamic_range_compression = 0;
audiocfg->out.gain = 0;
+ audiocfg->out.normalize_mix_level = 0;
audiocfg->out.name = NULL;
}
@@ -1684,6 +1685,7 @@ int hb_audio_add(const hb_job_t * job, const hb_audio_config_t * audiocfg)
audio->config.out.mixdown = HB_AMIXDOWN_NONE;
audio->config.out.dynamic_range_compression = 0;
audio->config.out.gain = 0;
+ audio->config.out.normalize_mix_level = 0;
audio->config.out.compression_level = -1;
audio->config.out.quality = HB_INVALID_AUDIO_QUALITY;
}
@@ -1698,6 +1700,7 @@ int hb_audio_add(const hb_job_t * job, const hb_audio_config_t * audiocfg)
audio->config.out.dynamic_range_compression = audiocfg->out.dynamic_range_compression;
audio->config.out.mixdown = audiocfg->out.mixdown;
audio->config.out.gain = audiocfg->out.gain;
+ audio->config.out.normalize_mix_level = audiocfg->out.normalize_mix_level;
}
if (audiocfg->out.name && *audiocfg->out.name)
{