]> granicus.if.org Git - handbrake/commitdiff
libhb: fix calculation of sync->gain_factor.
authorRodeo <tdskywalker@gmail.com>
Sat, 29 Sep 2012 17:55:37 +0000 (17:55 +0000)
committerRodeo <tdskywalker@gmail.com>
Sat, 29 Sep 2012 17:55:37 +0000 (17:55 +0000)
Revision 4976 simplified it, but it was still slightly incorrect.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4993 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/sync.c

index 0b24c9dea4a60f2e5a8721110730780ccdb89e4c..cd45b7fdddf882ac1938752a83a7495adfd4c3ad 100644 (file)
@@ -1030,7 +1030,7 @@ static void InitAudio( hb_job_t * job, hb_sync_common_t * common, int i )
         }
     }
 
-    sync->gain_factor = exp2(w->audio->config.out.gain / 6.);
+    sync->gain_factor = pow(10, w->audio->config.out.gain / 20);
 
     hb_list_add( job->list_work, w );
 }