Originally committed as revision 8554 to svn://svn.ffmpeg.org/ffmpeg/trunk
Baptiste Coudurier authored on 2007/03/30 18:43:39... | ... |
@@ -98,6 +98,8 @@ unknown_opt: |
98 | 98 |
*po->u.int_arg = 1; |
99 | 99 |
} else if (po->flags & OPT_INT) { |
100 | 100 |
*po->u.int_arg = atoi(arg); |
101 |
+ } else if (po->flags & OPT_INT64) { |
|
102 |
+ *po->u.int64_arg = atoll(arg); |
|
101 | 103 |
} else if (po->flags & OPT_FLOAT) { |
102 | 104 |
*po->u.float_arg = atof(arg); |
103 | 105 |
} else if (po->flags & OPT_FUNC2) { |
... | ... |
@@ -36,12 +36,14 @@ typedef struct { |
36 | 36 |
#define OPT_FLOAT 0x0100 |
37 | 37 |
#define OPT_SUBTITLE 0x0200 |
38 | 38 |
#define OPT_FUNC2 0x0400 |
39 |
+#define OPT_INT64 0x0800 |
|
39 | 40 |
union { |
40 | 41 |
void (*func_arg)(const char *); //FIXME passing error code as int return would be nicer then exit() in the func |
41 | 42 |
int *int_arg; |
42 | 43 |
char **str_arg; |
43 | 44 |
float *float_arg; |
44 | 45 |
int (*func2_arg)(const char *, const char *); |
46 |
+ int64_t *int64_arg; |
|
45 | 47 |
} u; |
46 | 48 |
const char *help; |
47 | 49 |
const char *argname; |