summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-03-16 19:13:46 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-04-17 00:14:02 +0200
commitea119529c7ba3f042d227209c5669163916f6b4b (patch)
tree7b3e7da440b85c39cbce39a45bb83320b9750016
parentde646638ac9dcf5dc66cf406cd9f0b034875b848 (diff)
snapshot: Allow the skip parameter to be 0
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--snapshot.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/snapshot.c b/snapshot.c
index 9763d6e..2b643cd 100644
--- a/snapshot.c
+++ b/snapshot.c
@@ -444,10 +444,6 @@ int main(int argc __attribute__((__unused__)), char *argv[] __attribute__((__unu
break;
case 'k':
snap.skip = strtoul(optarg, NULL, 10);
- if (snap.skip == 0) {
- printf("snapshot skip value must be >0.\n");
- return 1;
- }
break;
case 'N':
snap.nframes = strtoul(optarg, NULL, 10);