Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
16a565d0
Commit
16a565d0
authored
Jul 05, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eval/fate: try to fix nan printing format failures.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e6d88f63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
eval.c
libavutil/eval.c
+5
-1
eval
tests/ref/fate/eval
+2
-2
No files found.
libavutil/eval.c
View file @
16a565d0
...
...
@@ -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)"
,
...
...
tests/ref/fate/eval
View file @
16a565d0
...
...
@@ -134,7 +134,7 @@ Evaluating 'sqrt(1764)'
'sqrt(1764)' -> 42.000000
Evaluating 'sqrt(-1)'
'sqrt(-1)' ->
-
nan
'sqrt(-1)' -> nan
Evaluating 'not(1)'
'not(1)' -> 0.000000
...
...
@@ -155,7 +155,7 @@ Evaluating 'PI^1.23'
'PI^1.23' -> 4.087844
Evaluating 'pow(-1,1.23)'
'pow(-1,1.23)' ->
-
nan
'pow(-1,1.23)' -> nan
12.700000 == 12.7
0.931323 == 0.931322575
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment