From c07bb2f3bc98ec6b89c6fa4c67770ef60bd8327c Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 4 Dec 2009 23:31:26 +0000 Subject: [PATCH] LinGui: fix mbtree x264 option sanitizer forgot to remove the code that set the default to 0 when there are b-frames git-svn-id: svn://localhost/HandBrake/trunk@3005 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/x264handler.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gtk/src/x264handler.c b/gtk/src/x264handler.c index a4664120..2118349e 100644 --- a/gtk/src/x264handler.c +++ b/gtk/src/x264handler.c @@ -893,14 +893,7 @@ sanitize_x264opts(signal_user_data_t *ud, const gchar *options) val = "1"; } const gchar *def_val; - if (find_syn_match(opt, x264_mbtree_syns) >= 0 && bframes == 0) - { - def_val = "0"; - } - else - { - def_val = x264_opt_get_default(opt); - } + def_val = x264_opt_get_default(opt); if (strcmp(val, def_val) == 0) { // Matches the default, so remove it -- 2.11.0