From 7ad6d024dce8657e4478d54f1f6a405331d35e9e Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 22 Feb 2017 13:33:16 -0700 Subject: encx265: fix 2 pass encoding when framerate is wrong 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. --- libhb/encx265.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libhb/encx265.c') diff --git a/libhb/encx265.c b/libhb/encx265.c index 90d786983..d0a4ef488 100644 --- a/libhb/encx265.c +++ b/libhb/encx265.c @@ -143,9 +143,8 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job) * 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; -- cgit v1.2.3