OSDN Git Service

LinGui: fix mbtree x264 option sanitizer
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 4 Dec 2009 23:31:26 +0000 (23:31 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 4 Dec 2009 23:31:26 +0000 (23:31 +0000)
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

index a466412..2118349 100644 (file)
@@ -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