mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-26 04:59:30 +08:00
fix TYPE_FLOAT parameter reading
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@192 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@ static int read_option(char *opt, char *param)
|
||||
case CONF_TYPE_FLOAT:
|
||||
if (param == NULL)
|
||||
goto err_missing_param;
|
||||
if (!isdigit(*param)) {
|
||||
if (!isdigit(*param) && *param != '-' && *param != '.') {
|
||||
printf("parameter must be a floating point number:\n");
|
||||
ret = ERR_MISSING_PARAM;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user