summaryrefslogtreecommitdiff
path: root/libavutil/opt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-05 13:50:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-05 13:50:22 +0100
commit6d7e57e88b7505029f3a96b5d159fc34fce02858 (patch)
treea6a0b4b946bdcb8b7840d0be1e0da767a0bcd716 /libavutil/opt.c
parentd48c8540a2c96b90de9ff60f01cf577a8bb79a07 (diff)
avutil/opt: Do not print inf in selftest
This fixes fate failures on windows Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r--libavutil/opt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 74594d93b4..092446b02b 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -2123,11 +2123,15 @@ int main(void)
av_log_set_level(AV_LOG_QUIET);
for (i=0; i < FF_ARRAY_ELEMS(options); i++) {
+ int silence_log = !strcmp(options[i], "rational=-1/0"); // inf formating differs between platforms
av_log(&test_ctx, AV_LOG_DEBUG, "Setting options string '%s'\n", options[i]);
+ if (silence_log)
+ av_log_set_callback(NULL);
if (av_set_options_string(&test_ctx, options[i], "=", ":") < 0)
printf("Error '%s'\n", options[i]);
else
printf("OK '%s'\n", options[i]);
+ av_log_set_callback(log_callback_help);
}
av_opt_free(&test_ctx);
}