This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit b6e470467eeb850f1f97ff8e2e380308d8225e92 Author: Ramiro Polla <[email protected]> AuthorDate: Tue Mar 24 16:13:57 2026 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Sat Mar 28 16:48:13 2026 +0000 swscale/tests/sws_ops: add -v option to set log verbosity Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <[email protected]> --- libswscale/tests/sws_ops.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libswscale/tests/sws_ops.c b/libswscale/tests/sws_ops.c index ccd5c7ddcb..ba5d047005 100644 --- a/libswscale/tests/sws_ops.c +++ b/libswscale/tests/sws_ops.c @@ -44,7 +44,7 @@ static void log_stdout(void *avcl, int level, const char *fmt, va_list vl) { if (level != AV_LOG_INFO) { av_log_default_callback(avcl, level, fmt, vl); - } else { + } else if (av_log_get_level() >= AV_LOG_INFO) { vfprintf(stdout, fmt, vl); } } @@ -69,6 +69,8 @@ int main(int argc, char **argv) " Only test the specified destination pixel format\n" " -src <pixfmt>\n" " Only test the specified source pixel format\n" + " -v <level>\n" + " Enable log verbosity at given level\n" ); return 0; } @@ -86,6 +88,8 @@ int main(int argc, char **argv) fprintf(stderr, "invalid pixel format %s\n", argv[i + 1]); goto error; } + } else if (!strcmp(argv[i], "-v")) { + av_log_set_level(atoi(argv[i + 1])); } else { bad_option: fprintf(stderr, "bad option or argument missing (%s) see -help\n", argv[i]); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
