diff options
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 }; |