diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-29 23:12:19 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-29 23:12:19 +0000 |
commit | 992f8eaee7080ab2e67cacd8851ca334f69156b3 (patch) | |
tree | b79700908545df56af5527bed79630c51d70c126 /ffserver.c | |
parent | 587edd6af8460282a436ad2e597c4bad7b32fe8e (diff) | |
download | ffmpeg-992f8eaee7080ab2e67cacd8851ca334f69156b3.tar.gz |
Factorize common commandline options definition.
Originally committed as revision 20664 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ffserver.c b/ffserver.c index 7abaed885b..fdb504f84a 100644 --- a/ffserver.c +++ b/ffserver.c @@ -4463,7 +4463,7 @@ static void opt_debug(void) logfilename[0] = '-'; } -static void opt_show_help(void) +static void show_help(void) { printf("usage: ffserver [options]\n" "Hyper fast multi format Audio/Video streaming server\n"); @@ -4472,14 +4472,7 @@ static void opt_show_help(void) } static const OptionDef options[] = { - { "h", OPT_EXIT, {(void*)opt_show_help}, "show help" }, - { "version", OPT_EXIT, {(void*)show_version}, "show version" }, - { "L", OPT_EXIT, {(void*)show_license}, "show license" }, - { "formats" , OPT_EXIT, {(void*)show_formats }, "show available formats" }, - { "codecs" , OPT_EXIT, {(void*)show_codecs }, "show available codecs" }, - { "bsfs" , OPT_EXIT, {(void*)show_bsfs }, "show available bit stream filters" }, - { "protocols", OPT_EXIT, {(void*)show_protocols}, "show available protocols" }, - { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" }, +#include "cmdutils_common_opts.h" { "n", OPT_BOOL, {(void *)&no_launch }, "enable no-launch mode" }, { "d", 0, {(void*)opt_debug}, "enable debug mode" }, { "f", HAS_ARG | OPT_STRING, {(void*)&config_filename }, "use configfile instead of /etc/ffserver.conf", "configfile" }, |