diff options
author | jstebbins <[email protected]> | 2014-08-26 21:06:14 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-08-26 21:06:14 +0000 |
commit | c269ccfe69c034349fe90916aa061c3edce0b0eb (patch) | |
tree | 0f8e6e7d3a6b70021070f687eb8d912b4e79b9df | |
parent | c32350780e40355c7d27be1b1b7511aa7a12ab8f (diff) |
LinGui: set x265 preset/tune/profile/level in job
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6364 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | gtk/src/hb-backend.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 55d9abc3b..f7630454b 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -2689,9 +2689,11 @@ void ghb_set_video_encoder_opts(hb_job_t *job, GValue *js) switch (vcodec) { + case HB_VCODEC_X265: case HB_VCODEC_X264: { - if (ghb_settings_get_boolean(js, "x264UseAdvancedOptions")) + if (vcodec == HB_VCODEC_X264 && + ghb_settings_get_boolean(js, "x264UseAdvancedOptions")) { char *opts = ghb_settings_get_string(js, "x264Option"); hb_job_set_encoder_options(job, opts); @@ -2708,13 +2710,16 @@ void ghb_set_video_encoder_opts(hb_job_t *job, GValue *js) char *tunes; g_string_append_printf(str, "%s", tune); - if (ghb_settings_get_boolean(js, "x264FastDecode")) + if (vcodec == HB_VCODEC_X264) { - g_string_append_printf(str, "%s%s", str->str[0] ? "," : "", "fastdecode"); - } - if (ghb_settings_get_boolean(js, "x264ZeroLatency")) - { - g_string_append_printf(str, "%s%s", str->str[0] ? "," : "", "zerolatency"); + if (ghb_settings_get_boolean(js, "x264FastDecode")) + { + g_string_append_printf(str, "%s%s", str->str[0] ? "," : "", "fastdecode"); + } + if (ghb_settings_get_boolean(js, "x264ZeroLatency")) + { + g_string_append_printf(str, "%s%s", str->str[0] ? "," : "", "zerolatency"); + } } tunes = g_string_free(str, FALSE); |