]> granicus.if.org Git - handbrake/commitdiff
encx265: fix turbo first pass
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 7 Nov 2016 21:51:06 +0000 (13:51 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 7 Nov 2016 21:51:06 +0000 (13:51 -0800)
x265 changed the default to slow first pass.  so always explicitely
set it in chase they change their minds again :-\

libhb/encx265.c

index fdfe7cf211945b1c9892ae466dcd2176094e5764..016a2248c4370159264a63f471e4434bdd9d1a65 100644 (file)
@@ -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;
+                }
             }
         }
     }