Message ID | 23f6cad25ef40ab6808440c0e0e17143b8b4ccbb.1661369869.git.ffmpegagent@gmail.com |
---|---|
State | New |
Headers | show |
Series | Add option to log timing | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/fftools/opt_common.c b/fftools/opt_common.c index ae5e28a5af..bd8430751c 100644 --- a/fftools/opt_common.c +++ b/fftools/opt_common.c @@ -1268,6 +1268,18 @@ int opt_loglevel(void *optctx, const char *opt, const char *arg) } else { flags |= AV_LOG_PRINT_LEVEL; } + } else if (av_strstart(token, "timing", &arg)) { + if (cmd == '-') { + flags &= ~AV_LOG_PRINT_TIME; + } else { + flags |= AV_LOG_PRINT_TIME; + } + } else if (av_strstart(token, "datetiming", &arg)) { + if (cmd == '-') { + flags &= ~AV_LOG_PRINT_DATETIME; + } else { + flags |= AV_LOG_PRINT_DATETIME; + } } else { break; }