Commit b383eef5 authored by michael's avatar michael

OPT_INT


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3092 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 845272bb
......@@ -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);
}
......
......@@ -11,6 +11,7 @@ typedef struct {
#define OPT_VIDEO 0x0010
#define OPT_AUDIO 0x0020
#define OPT_GRAB 0x0040
#define OPT_INT 0x0080
union {
void (*func_arg)(const char *);
int *int_arg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment