Commit c1e93cdc authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/opt: Also test/compare the av_log output i the selftest

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e72f8cea
......@@ -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 };
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment