[FFmpeg-cvslog] eval: Check that single parameter functions dont get a second param.

Michael Niedermayer git at videolan.org
Sun Feb 26 22:29:09 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 22 22:18:50 2012 +0100| [8c5ee45d13b7a0d14ff75b7db72d5400b7750571] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c5ee45d13b7a0d14ff75b7db72d5400b7750571
---

 libavutil/eval.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/eval.c b/libavutil/eval.c
index bd5902d..5147f7f 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]));



More information about the ffmpeg-cvslog mailing list