From: jstebbins Date: Wed, 22 Jul 2009 16:20:55 +0000 (+0000) Subject: libhb: fix interjob recalculation of framerate X-Git-Tag: 0.9.4~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31cba7c50e86008d1f2db00c411af1bb781226a6;p=handbrake libhb: fix interjob recalculation of framerate there was loss of precision due to integer division. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2721 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/work.c b/libhb/work.c index d0afb500d..752839bce 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -362,7 +362,8 @@ void correct_framerate( hb_job_t * job ) interjob->vrate_base = job->vrate_base; real_frames = interjob->frame_count - interjob->render_dropped; - job->vrate = job->vrate_base * ( real_frames / ( interjob->total_time / 90000 ) ); + + job->vrate = job->vrate_base * ( (double)real_frames * 90000 / interjob->total_time ); }