libhb: don't pass "auto" profile to libx265.
authorRodeo <tdskywalker@gmail.com>
Mon, 16 Feb 2015 20:59:53 +0000 (20:59 +0000)
committerRodeo <tdskywalker@gmail.com>
Mon, 16 Feb 2015 20:59:53 +0000 (20:59 +0000)
This isn't a valid H.265 profile and will cause encoder initialization to fail.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6913 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/encx265.c

index 4e1e3e2c48a9d897cea8deb1e1494642dc5e0260..d9b4be64e6e3eec1c7c8c78689a05e4b39b06536 100644 (file)
@@ -269,7 +269,9 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job)
     }
 
     /* Apply profile and level settings last. */
-    if (x265_param_apply_profile(param, job->encoder_profile) < 0)
+    if (job->encoder_profile                                       != NULL &&
+        strcasecmp(job->encoder_profile, hb_h265_profile_names[0]) != 0    &&
+        x265_param_apply_profile(param, job->encoder_profile)       < 0)
     {
         goto fail;
     }