From c1e93cdc9efdc8efac785f7e8ae1fe492ee9a0eb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 27 Feb 2015 23:35:01 +0100 Subject: avutil/opt: Also test/compare the av_log output i the selftest Signed-off-by: Michael Niedermayer --- libavutil/opt.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavutil/opt.c') diff --git a/libavutil/opt.c b/libavutil/opt.c index 5de891bb82..007f51d089 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -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 }; -- cgit v1.2.3