diff options
author | jstebbins <[email protected]> | 2009-07-22 16:20:55 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-07-22 16:20:55 +0000 |
commit | 31cba7c50e86008d1f2db00c411af1bb781226a6 (patch) | |
tree | f1a298638acf2d51fb46632b80cf9d495ea51339 | |
parent | e468f26b20a372a0453eec2780b392536d08ab36 (diff) |
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
-rw-r--r-- | libhb/work.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 ); } |