summaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-12-13 13:49:14 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-12-13 13:49:14 +0000
commite4637d6a60af0c414f8953826a51d77e5aee508f (patch)
tree8a9551d42c24039111336b9723612ff8fa86e893 /ffmpeg.c
parent0dae3e13e39d8caaedeabb4b20c31da6cad4a908 (diff)
downloadffmpeg-streaming-e4637d6a60af0c414f8953826a51d77e5aee508f.zip
ffmpeg-streaming-e4637d6a60af0c414f8953826a51d77e5aee508f.tar.gz
Show help if no cmd line options are provided at all.
This safes the users time to find out which of -h --help -? works. Originally committed as revision 20822 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a1abd30..2974edd 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3985,6 +3985,9 @@ int main(int argc, char **argv)
/* parse options */
parse_options(argc, argv, options, opt_output_file);
+ if(nb_output_files <= 0 && nb_input_files == 0)
+ show_help();
+
/* file converter / grab */
if (nb_output_files <= 0) {
fprintf(stderr, "At least one output file must be specified\n");
OpenPOWER on IntegriCloud