diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-31 14:08:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-31 18:06:18 +0200 |
commit | 5c13ae280fd5e7066347c2eb006be087a001924d (patch) | |
tree | dfb46792b1e0190397ebcb14d7d074a109f9677c /cmdutils.c | |
parent | cb16d433a982a842935df0a57b9d0ab28640986d (diff) | |
download | ffmpeg-5c13ae280fd5e7066347c2eb006be087a001924d.tar.gz |
cmdutils: allow forcing log line repeation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c index ca1c965edc..a280ff3d7c 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -795,6 +795,13 @@ int opt_loglevel(void *optctx, const char *opt, const char *arg) int level; int i; + tail = strstr(arg, "repeat"); + av_log_set_flags(tail ? 0 : AV_LOG_SKIP_REPEATED); + if (tail == arg) + arg += 6 + (arg[6]=='+'); + if(tail && !*arg) + return 0; + for (i = 0; i < FF_ARRAY_ELEMS(log_levels); i++) { if (!strcmp(log_levels[i].name, arg)) { av_log_set_level(log_levels[i].level); |