eval: Check that single parameter functions dont get a second param.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
923092697a
commit
8c5ee45d13
1 changed files with 1 additions and 1 deletions
|
|
@ -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]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue