eval/fate: try to fix nan printing format failures.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -659,7 +659,11 @@ int main(int argc, char **argv)
|
||||
av_expr_parse_and_eval(&d, *expr,
|
||||
const_names, const_values,
|
||||
NULL, NULL, NULL, NULL, NULL, 0, NULL);
|
||||
printf("'%s' -> %f\n\n", *expr, d);
|
||||
if(isnan(d)){
|
||||
printf("'%s' -> nan\n\n", *expr);
|
||||
}else{
|
||||
printf("'%s' -> %f\n\n", *expr, d);
|
||||
}
|
||||
}
|
||||
|
||||
av_expr_parse_and_eval(&d, "1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)",
|
||||
|
Reference in New Issue
Block a user