summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/advtime.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/advtime.c b/src/advtime.c
index 376d983..be0427e 100644
--- a/src/advtime.c
+++ b/src/advtime.c
@@ -86,7 +86,15 @@ frame_average(struct video_frame *frame)
static void
usage(void)
{
- fprintf(stderr, "advtime [-a] [-d] FILE\n");
+ fprintf(stderr,
+ "advtime [-adfs] FILE\n"
+ "\n"
+ "OPTIONS\n"
+ "\t-a\tcalculate average color of a frame\n"
+ "\t-d\tcalculate difference betweenprev and next frame\n"
+ "\t-f\tprint frame number\n"
+ "\t-s\tsave frame from detected cut\n");
+
exit(EXIT_FAILURE);
}
@@ -110,7 +118,7 @@ main(int argc, char **argv)
diff_flag = 1;
break;
case 'f':
- diff_flag = 1;
+ frame_flag = 1;
break;
case 's':
showcut_flag = 1;