]> git.sesse.net Git - ffmpeg/blobdiff - cmdutils.c
Remove #if 0 code.
[ffmpeg] / cmdutils.c
index 7922051966a158ede57070a818b63c5580e42af7..d5095cec808e41d3086246f3f47a246d2b0efdbf 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "cmdutils.h"
 
+#undef exit
+
 void show_help_options(const OptionDef *options, const char *msg, int mask, int value)
 {
     const OptionDef *po;
@@ -59,7 +61,7 @@ static const OptionDef* find_option(const OptionDef *po, const char *name){
 void parse_options(int argc, char **argv, const OptionDef *options)
 {
     const char *opt, *arg;
-    int optindex, handleoptions;
+    int optindex, handleoptions=1;
     const OptionDef *po;
 
     /* parse options */
@@ -96,6 +98,8 @@ unknown_opt:
                 *po->u.int_arg = 1;
             } else if (po->flags & OPT_INT) {
                 *po->u.int_arg = atoi(arg);
+            } else if (po->flags & OPT_INT64) {
+                *po->u.int64_arg = atoll(arg);
             } else if (po->flags & OPT_FLOAT) {
                 *po->u.float_arg = atof(arg);
             } else if (po->flags & OPT_FUNC2) {