diff options
author | Rodeo <[email protected]> | 2012-09-23 13:57:21 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-09-23 13:57:21 +0000 |
commit | 8852d5092b11e633ab7a479e19f6df2a1670c992 (patch) | |
tree | 2d53baac04dd33821fcbd118822fc48a0f4a2718 /libhb/sync.c | |
parent | 5c92a97583a352663e6f68642949212e6e47640d (diff) |
libhb: simplify calculation of sync->gain_factor.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4976 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index f5ef07776..0b24c9dea 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -888,8 +888,6 @@ hb_work_object_t hb_sync_audio = syncAudioClose }; -#define LVL_PLUS1DB 1.122462048 - static void InitAudio( hb_job_t * job, hb_sync_common_t * common, int i ) { hb_work_object_t * w; @@ -1032,7 +1030,7 @@ static void InitAudio( hb_job_t * job, hb_sync_common_t * common, int i ) } } - sync->gain_factor = pow(LVL_PLUS1DB, w->audio->config.out.gain); + sync->gain_factor = exp2(w->audio->config.out.gain / 6.); hb_list_add( job->list_work, w ); } |