From e69d7220dce41a902486683ba97d928cbe4b8301 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 21 Apr 2015 15:51:50 +0000 Subject: param: allow ',' as decimal separator in filter settings git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7111 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/param.c b/libhb/param.c index b85f25a55..308308dc6 100644 --- a/libhb/param.c +++ b/libhb/param.c @@ -236,7 +236,7 @@ int hb_validate_param_string(const char *regex_pattern, const char *param_string int hb_validate_filter_settings(int filter_id, const char *filter_param) { // 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]+)))+)?)$"; + const char *hb_colon_separated_params_regex = "^((([0-9]+([.,][0-9]+)?)|([.,][0-9]+))((:(([0-9]+([.,][0-9]+)?)|([.,][0-9]+)))+)?)$"; const char *regex_pattern = NULL; -- cgit v1.2.3