diff options
author | Rodeo <[email protected]> | 2015-01-09 23:35:34 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2015-01-09 23:35:34 +0000 |
commit | 5b6cf99c90ca8518aabdf9065aa9b10cc76070f7 (patch) | |
tree | d7b7a52ed927b180ff3d8e8abb96723da0bf2d2c /libhb/work.c | |
parent | 0fa6b85e0a0bd99a4333417b8ca120b8b83663ba (diff) |
libhb: reduce framerate fps/num for all encoders.
Some encoders do it on their own, but others
don't, so do it unconditionally for consistency.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6714 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index 20f8f8906..607658e70 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -921,6 +921,13 @@ static void do_job(hb_job_t *job) job->par.num, job->par.den, 255); } + /* + * The frame rate may affect the bitstream's time base, lose superfluous + * factors for consistency (some encoders reduce fractions, some don't). + */ + hb_reduce(&job->vrate.num, &job->vrate.den, + job->vrate.num, job->vrate.den); + #ifdef USE_QSV if (hb_qsv_decode_is_enabled(job)) { |