int index; ///< stream/chapter/program number
} MetadataMap;
-static const OptionDef options[];
+static const OptionDef *options;
static int video_discard = 0;
static int same_quant = 0;
}
#define OFFSET(x) offsetof(OptionsContext, x)
-static const OptionDef options[] = {
+static const OptionDef real_options[] = {
/* main options */
#include "cmdutils_common_opts.h"
{ "f", HAS_ARG | OPT_STRING | OPT_OFFSET, {.off = OFFSET(format)}, "force format", "fmt" },
OptionsContext o = { 0 };
int64_t ti;
+ options = real_options;
reset_options(&o);
av_log_set_flags(AV_LOG_SKIP_REPEATED);
static int use_value_sexagesimal_format = 0;
/* globals */
-static const OptionDef options[];
+static const OptionDef *options;
/* AVprobe context */
static const char *input_filename;
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" },
if (!buffer)
exit(1);
+ options = real_options;
parse_loglevel(argc, argv, options);
av_register_all();
avformat_network_init();