x265 expects the framerate specified to be the same for both passes. So
we must set the same value even when we compute that the actual
framerate differs from what the file's header says.
(cherry picked from commit
ac73d24c799292fd6493ef1ce83816fa35c24a6d)
* Some HandBrake-specific defaults; users can override them
* using the encoder_options string.
*/
- hb_reduce(&vrate.num, &vrate.den, job->vrate.num, job->vrate.den);
- param->fpsNum = vrate.num;
- param->fpsDenom = vrate.den;
+ param->fpsNum = job->orig_vrate.num;
+ param->fpsDenom = job->orig_vrate.den;
param->keyframeMin = (double)job->orig_vrate.num / job->orig_vrate.den +
0.5;
param->keyframeMax = param->keyframeMin * 10;