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:
szabii 2001-03-22 15:25:28 +00:00
parent 0a332ce23a
commit 2b80db65e3
1 changed files with 1 additions and 1 deletions

View File

@ -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;