summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-21 23:41:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-21 23:41:17 +0000
commit20176cbc737a4896f10d199d5c02ae13cc74d34b (patch)
tree6579a823bf067fa2ac65ab6283c95d5b9fd7a7cf /ffmpeg.c
parent64555bd9b1596dca0aeac8ffe533ddca62356b80 (diff)
Get rid of more senseless wrapper functions and use OPT_EXIT instead.
Originally committed as revision 13233 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index b30ecbceb0..995a775458 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3756,17 +3756,11 @@ static int opt_bsf(const char *opt, const char *arg)
return 0;
}
-static void opt_show_version(void)
-{
- show_version();
- av_exit(0);
-}
-
static const OptionDef options[] = {
/* main options */
{ "L", OPT_EXIT, {(void*)show_license}, "show license" },
{ "h", OPT_EXIT, {(void*)show_help}, "show help" },
- { "version", 0, {(void*)opt_show_version}, "show version" },
+ { "version", OPT_EXIT, {(void*)show_version}, "show version" },
{ "formats", OPT_EXIT, {(void*)opt_show_formats}, "show available formats, codecs, protocols, ..." },
{ "f", HAS_ARG, {(void*)opt_format}, "force format", "fmt" },
{ "i", HAS_ARG, {(void*)opt_input_file}, "input file name", "filename" },