1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

tests/swscale: allow setting log verbosity

Helpful for debugging the new swscale code, since it dumps the
operations list in verbose logging mode.
This commit is contained in:
Niklas Haas
2025-02-27 22:06:20 +01:00
parent 92a57f1cfd
commit 3e32dc8b08

View File

@@ -526,6 +526,8 @@ int main(int argc, char **argv)
" Use the specified number of threads\n"
" -cpuflags <cpuflags>\n"
" Uses the specified cpuflags in the tests\n"
" -v <level>\n"
" Enable log verbosity at given level\n"
);
return 0;
}
@@ -573,6 +575,8 @@ int main(int argc, char **argv)
opts.threads = atoi(argv[i + 1]);
} else if (!strcmp(argv[i], "-p")) {
opts.prob = atof(argv[i + 1]);
} 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]);