summaryrefslogtreecommitdiffstats
path: root/libhb/encx265.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-02-22 13:33:16 -0700
committerJohn Stebbins <[email protected]>2017-02-22 13:49:21 -0700
commit7ad6d024dce8657e4478d54f1f6a405331d35e9e (patch)
tree7b2b4a8d6b19f61af318f73bc6a587d27b76f214 /libhb/encx265.c
parent7cf4263c54b0b671cce382854a600828656c0f04 (diff)
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.
Diffstat (limited to 'libhb/encx265.c')
-rw-r--r--libhb/encx265.c5
1 files changed, 2 insertions, 3 deletions
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;