diff options
author | jstebbins <[email protected]> | 2011-03-08 16:12:57 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-03-08 16:12:57 +0000 |
commit | 673a841b1ef2dcd31647fce00829dc4a3f2b0715 (patch) | |
tree | b11d12d19c798463a8756d8f5f989e6d2865765b /libhb/common.c | |
parent | 6444014c71cd881ad4874e96a6138ea268be8b4d (diff) |
make keyint match between 1st and 2nd passes of vfr and pfr encodes.
make keyint and fps settings consistent across video encoders.
make interjob->vrate changes for pfr mode like we do for vfr since
pfr is the same as vfr except when it hits it's peak.
in mkv, set track default duration to actual measured vrate on 2 pass encodes.
thanks to Rodeo for the corrections in encx264
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3831 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libhb/common.c b/libhb/common.c index 06fb00645..2387aa4ef 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -520,9 +520,8 @@ int hb_calc_bitrate( hb_job_t * job, int size ) if( size == -1 ) { - hb_interjob_t * interjob = hb_interjob_get( job->h ); avail = job->vbitrate * 125 * length; - avail += length * interjob->vrate * overhead / interjob->vrate_base; + avail += length * job->vrate * overhead / job->vrate_base; } /* Video overhead */ |