Commit 085ea85c authored by Michael Niedermayer's avatar Michael Niedermayer

eval: fix () bug in not.

Found-by: Oded Shimon
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bd141af4
......@@ -155,7 +155,7 @@ static double eval_expr(Parser *p, AVExpr *e)
case e_ceil : return e->value * ceil (eval_expr(p, e->param[0]));
case e_trunc: return e->value * trunc(eval_expr(p, e->param[0]));
case e_sqrt: return e->value * sqrt (eval_expr(p, e->param[0]));
case e_not: return e->value * eval_expr(p, e->param[0]) == 0;
case e_not: return e->value * (eval_expr(p, e->param[0]) == 0);
case e_random:{
int idx= av_clip(eval_expr(p, e->param[0]), 0, VARS-1);
uint64_t r= isnan(p->var[idx]) ? 0 : p->var[idx];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment