This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 6d72540d42 avutil/eval: evaluate the first argument of clip() only once
6d72540d42 is described below

commit 6d72540d429b3c6aad77df4f5382eaa7330d8862
Author:     zhang xingxing <[email protected]>
AuthorDate: Mon Sep 21 06:13:29 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Sep 28 03:46:22 2026 +0000

    avutil/eval: evaluate the first argument of clip() only once
    
    Found-by: zhang xingxing
    Fixes: double evaluation of the clip() argument
    Fixes: QI0lR8gkbkbN
    Fixes: swarm-e_clip-double-evaluates-first-parameter-8c8411
---
 libavutil/eval.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/eval.c b/libavutil/eval.c
index 2bd07b98c1..9b5ad21849 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -222,7 +222,7 @@ static double eval_expr(Parser *p, AVExpr *e)
             double min = eval_expr(p, e->param[1]), max = eval_expr(p, 
e->param[2]);
             if (isnan(min) || isnan(max) || isnan(x) || min > max)
                 return NAN;
-            return e->value * av_clipd(eval_expr(p, e->param[0]), min, max);
+            return e->value * av_clipd(x, min, max);
         }
         case e_between: {
             double d = eval_expr(p, e->param[0]);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to