OPT_FLOAT

Originally committed as revision 3601 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2004-10-16 20:30:14 +00:00
parent ad81a9fe41
commit 1f631450fd
2 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,8 @@ void parse_options(int argc, char **argv, const OptionDef *options)
*po->u.int_arg = 1;
} else if (po->flags & OPT_INT) {
*po->u.int_arg = atoi(arg);
} else if (po->flags & OPT_FLOAT) {
*po->u.float_arg = atof(arg);
} else {
po->u.func_arg(arg);
}