diff options
Diffstat (limited to 'm_option.c')
-rw-r--r-- | m_option.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/m_option.c b/m_option.c index bdf0a4da11..5baeef41f6 100644 --- a/m_option.c +++ b/m_option.c @@ -143,6 +143,8 @@ static int parse_int(m_option_t* opt,char *name, char *param, void* dst, int src if (param == NULL) return M_OPT_MISSING_PARAM; + tmp_int = strtol(param, &endptr, 10); + if (*endptr) tmp_int = strtol(param, &endptr, 0); if (*endptr) { mp_msg(MSGT_CFGPARSER, MSGL_ERR, "The %s option must be an integer: %s\n",name, param); |