aboutsummaryrefslogtreecommitdiff
path: root/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'args.c')
-rw-r--r--args.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/args.c b/args.c
index 9ec8bf3..25bbf73 100644
--- a/args.c
+++ b/args.c
@@ -74,7 +74,7 @@ int parse_args(struct instance *i, int argc, char **argv)
init_to_defaults(i);
- while ((c = getopt(argc, argv, "w:h:c:di:m:f:")) != -1) {
+ while ((c = getopt(argc, argv, "w:h:c:di:m:f:n:")) != -1) {
switch (c) {
case 'c':
i->codec = get_codec(optarg);
@@ -95,9 +95,12 @@ int parse_args(struct instance *i, int argc, char **argv)
i->height = atoi(optarg);
break;
case 'f':
- i->save_frames = 1;
+ i->save_encoded = 1;
i->save_path = optarg;
break;
+ case 'n':
+ i->num_frames_to_save = atoi(optarg);
+ break;
default:
err("Bad argument");
return -1;