Skip to content
Snippets Groups Projects
Commit 5c13ae28 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

cmdutils: allow forcing log line repeation

parent cb16d433
No related branches found
No related tags found
No related merge requests found
...@@ -795,6 +795,13 @@ int opt_loglevel(void *optctx, const char *opt, const char *arg) ...@@ -795,6 +795,13 @@ int opt_loglevel(void *optctx, const char *opt, const char *arg)
int level; int level;
int i; 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++) { for (i = 0; i < FF_ARRAY_ELEMS(log_levels); i++) {
if (!strcmp(log_levels[i].name, arg)) { if (!strcmp(log_levels[i].name, arg)) {
av_log_set_level(log_levels[i].level); av_log_set_level(log_levels[i].level);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment