avutil/opt: Also test/compare the av_log output i the selftest
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1964,10 +1964,18 @@ static const AVClass test_class = {
|
||||
test_options
|
||||
};
|
||||
|
||||
static void log_callback_help(void *ptr, int level, const char *fmt, va_list vl)
|
||||
{
|
||||
vfprintf(stdout, fmt, vl);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
av_log_set_level(AV_LOG_DEBUG);
|
||||
av_log_set_callback(log_callback_help);
|
||||
|
||||
printf("Testing default values\n");
|
||||
{
|
||||
TestContext test_ctx = { 0 };
|
||||
|
Reference in New Issue
Block a user