diff options
author | ritsuka <[email protected]> | 2015-05-16 07:18:22 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-05-16 07:18:22 +0000 |
commit | d3555f10dd56055c0a94b2d56ecd4b58ecb9f47a (patch) | |
tree | 0c1b4ce0d9d63b7907294a00f5d94693ba53f356 | |
parent | 5359f757b672db040780a76eeeea04ed2d3ef89c (diff) |
Allow negative number in hb_validate_filter_settings. Fix deinterlace settings validation.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7193 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/param.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/param.c b/libhb/param.c index 9263351d2..494badf39 100644 --- a/libhb/param.c +++ b/libhb/param.c @@ -311,8 +311,8 @@ int hb_validate_filter_settings(int filter_id, const char *filter_param) if (filter_param == NULL) return 0; - // Regex matches "number" followed by one or more ":number", where number is uint or ufloat - const char *hb_colon_separated_params_regex = "^((([0-9]+([.,][0-9]+)?)|([.,][0-9]+))((:(([0-9]+([,.][0-9]+)?)|([,.][0-9]+)))+)?)$"; + // Regex matches "number" followed by one or more ":number", where number is int or float + const char *hb_colon_separated_params_regex = "^(((([\\-])?[0-9]+([.,][0-9]+)?)|(([\\-])?[.,][0-9]+))((:((([\\-])?[0-9]+([,.][0-9]+)?)|(([\\-])?[,.][0-9]+)))+)?)$"; const char *regex_pattern = NULL; |