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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-02-22 22:18:50 +01:00
parent 923092697a
commit 8c5ee45d13

View File

@ -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]));