Skip to content
Snippets Groups Projects
Commit 085ea85c authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

eval: fix () bug in not.


Found-by: Oded Shimon
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent bd141af4
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment