diff options
author | John Stebbins <[email protected]> | 2015-10-17 15:57:03 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-11-12 09:49:56 -0800 |
commit | 890a551270ef8110e47d9c503e1588d3d2bc710f (patch) | |
tree | 1e31de5f379c54157c9ec095b55a8eeadca5ef8a /gtk/src/videohandler.c | |
parent | 88ce808b3083415950be070fa7bdc90d49a67eea (diff) |
x264: add multilib support (a.k.a. 10-bit)
This adds the structure to load an libx264 10-bit shared library.
The user must install this library themselves to an appropriate place.
Diffstat (limited to 'gtk/src/videohandler.c')
-rw-r--r-- | gtk/src/videohandler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/src/videohandler.c b/gtk/src/videohandler.c index b4c0437b8..e463810cb 100644 --- a/gtk/src/videohandler.c +++ b/gtk/src/videohandler.c @@ -70,7 +70,7 @@ vcodec_changed_cb(GtkWidget *widget, signal_user_data_t *ud) } // Advanced options are only for x264 - if (encoder != HB_VCODEC_X264) + if (!(encoder & HB_VCODEC_X264_MASK)) { ghb_ui_update(ud, "x264UseAdvancedOptions", ghb_boolean_value(FALSE)); } @@ -101,7 +101,7 @@ ghb_video_setting_changed(GtkWidget *widget, signal_user_data_t *ud) } if (!ghb_dict_get_bool(ud->settings, "x264UseAdvancedOptions") && - encoder == HB_VCODEC_X264) + (encoder & HB_VCODEC_X264_MASK)) { GString *str = g_string_new(""); const char *preset; @@ -167,7 +167,7 @@ ghb_video_setting_changed(GtkWidget *widget, signal_user_data_t *ud) { level = ""; } - new_opts = hb_x264_param_unparse( + new_opts = hb_x264_param_unparse(hb_video_encoder_get_depth(encoder), preset, tunes, opts, profile, level, w, h); if (new_opts) ghb_update_x264Option(ud, new_opts); |