diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-07-26 04:23:23 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-07-28 11:48:18 -0700 |
commit | dcb7ef5483f26a7f20eee048821916f051216d62 (patch) | |
tree | 4a70aad28f0c91e51a2aac1e3e3a9a882499458d /avprobe.c | |
parent | c83f44dba11930744e167856b48fbc24a8ff0e63 (diff) | |
download | ffmpeg-dcb7ef5483f26a7f20eee048821916f051216d62.tar.gz |
avprobe/avconv: fix tentative declaration compile errors on MSVS.
Diffstat (limited to 'avprobe.c')
-rw-r--r-- | avprobe.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -44,7 +44,7 @@ static int use_byte_value_binary_prefix = 0; static int use_value_sexagesimal_format = 0; /* globals */ -static const OptionDef options[]; +static const OptionDef *options; /* AVprobe context */ static const char *input_filename; @@ -887,7 +887,7 @@ static void opt_pretty(void) use_value_sexagesimal_format = 1; } -static const OptionDef options[] = { +static const OptionDef real_options[] = { #include "cmdutils_common_opts.h" { "f", HAS_ARG, {(void*)opt_format}, "force format", "format" }, { "of", HAS_ARG, {(void*)&opt_output_format}, "output the document either as ini or json", "output_format" }, @@ -927,6 +927,7 @@ int main(int argc, char **argv) if (!buffer) exit(1); + options = real_options; parse_loglevel(argc, argv, options); av_register_all(); avformat_network_init(); |