mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
shut gcc warning, also makes sense for NAN to be returned if the loop was never executed
Originally committed as revision 6818 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d83723305e
commit
63a547eabc
@ -156,7 +156,7 @@ static double eval_expr(Parser * p, AVEvalExpr * e) {
|
||||
case e_gauss: { double d = eval_expr(p, e->param[0]); return exp(-d*d/2)/sqrt(2*M_PI); }
|
||||
case e_ld: return e->value * p->var[clip(eval_expr(p, e->param[0]), 0, VARS-1)];
|
||||
case e_while: {
|
||||
double d;
|
||||
double d = NAN;
|
||||
while(eval_expr(p, e->param[0]))
|
||||
d=eval_expr(p, e->param[1]);
|
||||
return d;
|
||||
|
Loading…
Reference in New Issue
Block a user