You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avutil/opt: Do not print inf in selftest
This fixes fate failures on windows Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2123,11 +2123,15 @@ int main(void)
|
|||||||
av_log_set_level(AV_LOG_QUIET);
|
av_log_set_level(AV_LOG_QUIET);
|
||||||
|
|
||||||
for (i=0; i < FF_ARRAY_ELEMS(options); i++) {
|
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]);
|
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)
|
if (av_set_options_string(&test_ctx, options[i], "=", ":") < 0)
|
||||||
printf("Error '%s'\n", options[i]);
|
printf("Error '%s'\n", options[i]);
|
||||||
else
|
else
|
||||||
printf("OK '%s'\n", options[i]);
|
printf("OK '%s'\n", options[i]);
|
||||||
|
av_log_set_callback(log_callback_help);
|
||||||
}
|
}
|
||||||
av_opt_free(&test_ctx);
|
av_opt_free(&test_ctx);
|
||||||
}
|
}
|
||||||
|
@@ -183,9 +183,6 @@ Value -1.000000 for parameter 'rational' out of range [0 - 10]
|
|||||||
Value -1.000000 for parameter 'rational' out of range [0 - 10]
|
Value -1.000000 for parameter 'rational' out of range [0 - 10]
|
||||||
Error 'rational=0 : rational=1/2 : rational=1/-1'
|
Error 'rational=0 : rational=1/2 : rational=1/-1'
|
||||||
Setting options string 'rational=-1/0'
|
Setting options string 'rational=-1/0'
|
||||||
Setting entry with key 'rational' to value '-1/0'
|
|
||||||
Value -inf for parameter 'rational' out of range [0 - 10]
|
|
||||||
Value -inf for parameter 'rational' out of range [0 - 10]
|
|
||||||
Error 'rational=-1/0'
|
Error 'rational=-1/0'
|
||||||
Setting options string 'size=1024x768'
|
Setting options string 'size=1024x768'
|
||||||
Setting entry with key 'size' to value '1024x768'
|
Setting entry with key 'size' to value '1024x768'
|
||||||
|
Reference in New Issue
Block a user