]> granicus.if.org Git - handbrake/commitdiff
LinGui: update decomb filter string validation.
authorjstebbins <jstebbins.hb@gmail.com>
Sun, 12 Jul 2009 19:59:41 +0000 (19:59 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sun, 12 Jul 2009 19:59:41 +0000 (19:59 +0000)
it can now have up to 15 parameters

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

gtk/src/hb-backend.c

index 89b0c7599ef4e0c92336740dcf15d3eba4246b49..db919986956c257be18ddd7b9fd845d988e21243 100644 (file)
@@ -3378,7 +3378,7 @@ ghb_validate_filters(signal_user_data_t *ud)
        gint index;
        gchar *message;
 
-       // deinte 4
+       // deinte
        index = ghb_settings_combo_int(ud->settings, "PictureDeinterlace");
        if (index == 1)
        {
@@ -3412,12 +3412,12 @@ ghb_validate_filters(signal_user_data_t *ud)
                }
                g_free(str);
        }
-       // decomb 4
+       // decomb
        index = ghb_settings_combo_int(ud->settings, "PictureDecomb");
        if (index == 1)
        {
                str = ghb_settings_get_string(ud->settings, "PictureDecombCustom");
-               if (!ghb_validate_filter_string(str, 7))
+               if (!ghb_validate_filter_string(str, 15))
                {
                        message = g_strdup_printf(
                                                "Invalid Decomb Settings:\n\n%s\n",
@@ -3429,7 +3429,7 @@ ghb_validate_filters(signal_user_data_t *ud)
                }
                g_free(str);
        }
-       // denois 4
+       // denois
        index = ghb_settings_combo_int(ud->settings, "PictureDenoise");
        if (index == 1)
        {