diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-08 23:16:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-09 02:04:54 +0200 |
commit | 085ea85c2ebdc293c54158d26f0ecb86ceefbcc9 (patch) | |
tree | 8ee88e83e6d8b1e080c10978aef7fc554ebb9ab2 | |
parent | bd141af460d744240788e9ab3993d7f391fa17b3 (diff) | |
download | ffmpeg-085ea85c2ebdc293c54158d26f0ecb86ceefbcc9.tar.gz |
eval: fix () bug in not.
Found-by: Oded Shimon
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 09bac3fdea..0c61ad072b 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -155,7 +155,7 @@ static double eval_expr(Parser *p, AVExpr *e) case e_ceil : return e->value * ceil (eval_expr(p, e->param[0])); case e_trunc: return e->value * trunc(eval_expr(p, e->param[0])); case e_sqrt: return e->value * sqrt (eval_expr(p, e->param[0])); - case e_not: return e->value * eval_expr(p, e->param[0]) == 0; + case e_not: return e->value * (eval_expr(p, e->param[0]) == 0); case e_random:{ int idx= av_clip(eval_expr(p, e->param[0]), 0, VARS-1); uint64_t r= isnan(p->var[idx]) ? 0 : p->var[idx]; |