diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-23 01:18:50 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-27 01:12:44 +0400 |
commit | 8c5ee45d13b7a0d14ff75b7db72d5400b7750571 (patch) | |
tree | 450b7dc0cf3f2f3da87a13c63230e325dc59f3f0 | |
parent | 923092697a6600bf18cf881f821068379f5a42d5 (diff) |
eval: Check that single parameter functions dont get a second param.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/eval.c b/libavutil/eval.c index bd5902d42f..5147f7f3f2 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -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])); |