Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index d53ec11624..d76f0e2e96 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -51,6 +51,7 @@ static int do_show_error = 0;
static int do_show_format = 0;
static int do_show_frames = 0;
static AVDictionary *fmt_entries_to_show = NULL;
+static int nb_fmt_entries_to_show;
static int do_show_packets = 0;
static int do_show_streams = 0;
static int do_show_program_version = 0;
@@ -398,6 +399,9 @@ static av_cold int default_init(WriterContext *wctx, const char *args, void *opa
def->class = &default_class;
av_opt_set_defaults(def);
+ if (nb_fmt_entries_to_show == 1)
+ def->nokey = 1;
+
if (args &&
(err = (av_set_options_string(def, args, "=", ":"))) < 0) {
av_log(wctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
@@ -1675,6 +1679,7 @@ static int opt_format(const char *opt, const char *arg)
static int opt_show_format_entry(const char *opt, const char *arg)
{
do_show_format = 1;
+ nb_fmt_entries_to_show++;
av_dict_set(&fmt_entries_to_show, arg, "", 0);
return 0;
}