Commit d4f98ab1 authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Diego Biurrun

Move up opt_show_license to get rid of ugly forward declaration.

patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 11019 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5b0b5ecf
...@@ -83,7 +83,6 @@ typedef struct AVMetaDataMap { ...@@ -83,7 +83,6 @@ typedef struct AVMetaDataMap {
extern const OptionDef options[]; extern const OptionDef options[];
static void show_help(void); static void show_help(void);
static void opt_show_license(void);
static int opt_default(const char *opt, const char *arg); static int opt_default(const char *opt, const char *arg);
#define MAX_FILES 20 #define MAX_FILES 20
...@@ -3607,6 +3606,12 @@ static void opt_bsf(const char *opt, const char *arg) ...@@ -3607,6 +3606,12 @@ static void opt_bsf(const char *opt, const char *arg)
*bsfp= bsfc; *bsfp= bsfc;
} }
static void opt_show_license(void)
{
show_license();
exit(0);
}
static void opt_show_version(void) static void opt_show_version(void)
{ {
show_version(program_name); show_version(program_name);
...@@ -3780,12 +3785,6 @@ const OptionDef options[] = { ...@@ -3780,12 +3785,6 @@ const OptionDef options[] = {
{ NULL, }, { NULL, },
}; };
static void opt_show_license(void)
{
show_license();
exit(0);
}
/** /**
* Trivial log callback. * Trivial log callback.
* Only suitable for show_help and similar since it lacks prefix handling. * Only suitable for show_help and similar since it lacks prefix handling.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment