diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-03-31 15:14:08 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-03-31 18:22:23 +0200 |
commit | d00dcb8c9f5f09094c262adea553509939c4f8ff (patch) | |
tree | 21fd8350f8fc68bd6ea8cff77a19dd07eb256e65 /libavutil/opt.c | |
parent | 999a46b12c8ac378fb099ec2e8dc498baea8ddef (diff) | |
download | ffmpeg-d00dcb8c9f5f09094c262adea553509939c4f8ff.tar.gz |
opt: attempt to improve options dump output.
Add some indent and remove the '-' prefix for filters.
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 97fc6fd9b5..fb3b724bd6 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -839,9 +839,11 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit, else if (unit && opt->type==AV_OPT_TYPE_CONST && strcmp(unit, opt->unit)) continue; else if (unit && opt->type == AV_OPT_TYPE_CONST) - av_log(av_log_obj, AV_LOG_INFO, " %-15s ", opt->name); + av_log(av_log_obj, AV_LOG_INFO, " %-15s ", opt->name); else - av_log(av_log_obj, AV_LOG_INFO, "-%-17s ", opt->name); + av_log(av_log_obj, AV_LOG_INFO, " %s%-17s ", + (opt->flags & AV_OPT_FLAG_FILTERING_PARAM) ? "" : "-", + opt->name); switch (opt->type) { case AV_OPT_TYPE_FLAGS: |