mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
eval: fix infinite loop on opensolaris x86.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
79ae084e9b
commit
d2101bffa0
@ -201,7 +201,7 @@ static double eval_expr(Parser *p, AVExpr *e)
|
||||
return d;
|
||||
}
|
||||
case e_root: {
|
||||
int i;
|
||||
int i, j;
|
||||
double low = -1, high = -1, v, low_v = -DBL_MAX, high_v = DBL_MAX;
|
||||
double var0 = p->var[0];
|
||||
double x_max = eval_expr(p, e->param[1]);
|
||||
@ -224,7 +224,7 @@ static double eval_expr(Parser *p, AVExpr *e)
|
||||
high_v = v;
|
||||
}
|
||||
if (low>=0 && high>=0){
|
||||
while (1) {
|
||||
for (j=0; j<1000; j++) {
|
||||
p->var[0] = (low+high)*0.5;
|
||||
if (low == p->var[0] || high == p->var[0])
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user