From: John Stebbins Date: Mon, 7 Nov 2016 21:51:06 +0000 (-0800) Subject: encx265: fix turbo first pass X-Git-Tag: 1.0.0~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd7a36c9ca3f1a2a17af4ba3fab62ef4ed5c2a21;p=handbrake encx265: fix turbo first pass x265 changed the default to slow first pass. so always explicitely set it in chase they change their minds again :-\ --- diff --git a/libhb/encx265.c b/libhb/encx265.c index fdfe7cf21..016a2248c 100644 --- a/libhb/encx265.c +++ b/libhb/encx265.c @@ -261,10 +261,15 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job) { goto fail; } - if (job->pass_id == HB_PASS_ENCODE_1ST && job->fastfirstpass == 0 && - param_parse(pv, param, "slow-firstpass", "1")) + if (job->pass_id == HB_PASS_ENCODE_1ST) { - goto fail; + char slowfirstpass[2]; + snprintf(slowfirstpass, sizeof(slowfirstpass), "%d", + !job->fastfirstpass); + if (param_parse(pv, param, "slow-firstpass", slowfirstpass)) + { + goto fail; + } } } }