diff options
-rw-r--r-- | options/m_option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_option.c b/options/m_option.c index 063a5a3495..f52a81a0b9 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -1707,7 +1707,7 @@ static int parse_color(struct mp_log *log, const m_option_t *opt, for (int n = 0; n < num; n++) { bstr rest; double d = bstrtod(comp_str[n], &rest); - if (rest.len || !comp_str[n].len || d < 0 || d > 1 || !isnormal(d)) + if (rest.len || !comp_str[n].len || d < 0 || d > 1 || !isfinite(d)) goto error; comp[n] = d; } |