]> git.sesse.net Git - ffmpeg/blobdiff - cmdutils.c
10l (wrong variable)
[ffmpeg] / cmdutils.c
index e47807e49f887efe0629d771cc11618bb5f28b9b..8aeaf0f2d4416c2b06989c00fdd1eef6ef19d6f6 100644 (file)
@@ -17,8 +17,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 #define HAVE_AV_CONFIG_H
-#include "common.h"
 #include "avformat.h"
+#include "common.h"
 
 #include "cmdutils.h"
 
@@ -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);
             }