diff --git a/ffplay.c b/ffplay.c index 33724a8e07..b62e9efb91 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2954,7 +2954,7 @@ static const OptionDef options[] = { static void show_usage(void) { printf("Simple media player\n"); - printf("usage: ffplay [options] input_file\n"); + printf("usage: %s [options] input_file\n", program_name); printf("\n"); } @@ -3019,7 +3019,7 @@ int main(int argc, char **argv) if (!input_filename) { show_usage(); fprintf(stderr, "An input file must be specified\n"); - fprintf(stderr, "Use -h to get full help or, even better, run 'man ffplay'\n"); + fprintf(stderr, "Use -h to get full help or, even better, run 'man %s'\n", program_name); exit(1); } diff --git a/ffprobe.c b/ffprobe.c index 8b66ae9628..f857311fc0 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -330,7 +330,7 @@ static int probe_file(const char *filename) static void show_usage(void) { printf("Simple multimedia streams analyzer\n"); - printf("usage: ffprobe [OPTIONS] [INPUT_FILE]\n"); + printf("usage: %s [OPTIONS] [INPUT_FILE]\n", program_name); printf("\n"); } @@ -412,7 +412,7 @@ int main(int argc, char **argv) if (!input_filename) { show_usage(); fprintf(stderr, "You have to specify one input file.\n"); - fprintf(stderr, "Use -h to get full help or, even better, run 'man ffprobe'.\n"); + fprintf(stderr, "Use -h to get full help or, even better, run 'man %s'.\n", program_name); exit(1); }