Commit 8c5ee45d authored by Michael Niedermayer's avatar Michael Niedermayer

eval: Check that single parameter functions dont get a second param.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 92309269
......@@ -523,7 +523,7 @@ static int verify_expr(AVExpr *e)
case e_sqrt:
case e_not:
case e_random:
return verify_expr(e->param[0]) && !e->param[2];
return verify_expr(e->param[0]) && !e->param[1];
case e_taylor:
return verify_expr(e->param[0]) && verify_expr(e->param[1])
&& (!e->param[2] || verify_expr(e->param[2]));
......
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