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
d2101bff
Commit
d2101bff
authored
Mar 01, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eval: fix infinite loop on opensolaris x86.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
79ae084e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
eval.c
libavutil/eval.c
+2
-2
No files found.
libavutil/eval.c
View file @
d2101bff
...
@@ -201,7 +201,7 @@ static double eval_expr(Parser *p, AVExpr *e)
...
@@ -201,7 +201,7 @@ static double eval_expr(Parser *p, AVExpr *e)
return
d
;
return
d
;
}
}
case
e_root
:
{
case
e_root
:
{
int
i
;
int
i
,
j
;
double
low
=
-
1
,
high
=
-
1
,
v
,
low_v
=
-
DBL_MAX
,
high_v
=
DBL_MAX
;
double
low
=
-
1
,
high
=
-
1
,
v
,
low_v
=
-
DBL_MAX
,
high_v
=
DBL_MAX
;
double
var0
=
p
->
var
[
0
];
double
var0
=
p
->
var
[
0
];
double
x_max
=
eval_expr
(
p
,
e
->
param
[
1
]);
double
x_max
=
eval_expr
(
p
,
e
->
param
[
1
]);
...
@@ -224,7 +224,7 @@ static double eval_expr(Parser *p, AVExpr *e)
...
@@ -224,7 +224,7 @@ static double eval_expr(Parser *p, AVExpr *e)
high_v
=
v
;
high_v
=
v
;
}
}
if
(
low
>=
0
&&
high
>=
0
){
if
(
low
>=
0
&&
high
>=
0
){
while
(
1
)
{
for
(
j
=
0
;
j
<
1000
;
j
++
)
{
p
->
var
[
0
]
=
(
low
+
high
)
*
0
.
5
;
p
->
var
[
0
]
=
(
low
+
high
)
*
0
.
5
;
if
(
low
==
p
->
var
[
0
]
||
high
==
p
->
var
[
0
])
if
(
low
==
p
->
var
[
0
]
||
high
==
p
->
var
[
0
])
break
;
break
;
...
...
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