aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-12-21 02:15:46 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-12-21 02:15:46 +0000
commit7f11e745b27bfbac6b2a18daffc44173530bd6d5 (patch)
tree1a4d5a523ec090c28ea51e4221682e3630f84999 /ffplay.c
parent0c2a18cbcdbaa931cb151692a340c0b4cab05028 (diff)
downloadffmpeg-7f11e745b27bfbac6b2a18daffc44173530bd6d5.tar.gz
Print usage instead of help when no files are specified.
Originally committed as revision 20905 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index a254203ae5..df9958e6f9 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2546,8 +2546,9 @@ int main(int argc, char **argv)
parse_options(argc, argv, options, opt_input_file);
if (!input_filename) {
- show_help();
+ 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");
exit(1);
}