From 26d4f26bb72622a5f8336f763bae75e97eb9217d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 30 Apr 2004 13:41:48 +0000 Subject: OPT_INT Originally committed as revision 3092 to svn://svn.ffmpeg.org/ffmpeg/trunk --- cmdutils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmdutils.c') diff --git a/cmdutils.c b/cmdutils.c index 309b99f7a6..8aeaf0f2d4 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -81,6 +81,8 @@ void parse_options(int argc, char **argv, const OptionDef *options) *po->u.str_arg = str; } else if (po->flags & OPT_BOOL) { *po->u.int_arg = 1; + } else if (po->flags & OPT_INT) { + *po->u.int_arg = atoi(arg); } else { po->u.func_arg(arg); } -- cgit v1.2.3