summaryrefslogtreecommitdiff
path: root/libavutil/opt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-27 23:35:01 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-01 17:04:12 +0100
commitc1e93cdc9efdc8efac785f7e8ae1fe492ee9a0eb (patch)
tree51265e7089c74c3ebc9ec0e4d57a6567a3a6d6a6 /libavutil/opt.c
parente72f8ceabde3daa673d7c46bd1d13bf9594e2c40 (diff)
avutil/opt: Also test/compare the av_log output i the selftest
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r--libavutil/opt.c8
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 };