aboutsummaryrefslogtreecommitdiff
path: root/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'args.c')
-rw-r--r--args.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/args.c b/args.c
index 0dd0b58..40c94cd 100644
--- a/args.c
+++ b/args.c
@@ -63,6 +63,8 @@ int get_codec(char *str)
return V4L2_PIX_FMT_MPEG2;
} else if (strncasecmp("mpeg1", str, 5) == 0) {
return V4L2_PIX_FMT_MPEG1;
+ } else if (strncasecmp("vp8", str, 5) == 0) {
+ return V4L2_PIX_FMT_VP8;
}
return 0;
}
@@ -73,7 +75,7 @@ int parse_args(struct instance *i, int argc, char **argv)
init_to_defaults(i);
- while ((c = getopt(argc, argv, "w:h:c:d:m:f:n:")) != -1) {
+ while ((c = getopt(argc, argv, "w:h:c:d:m:fn:")) != -1) {
switch (c) {
case 'c':
i->codec = get_codec(optarg);