From 20ee65ef73b78c8acd2a036f435fe7d45338903f Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 14 Jun 2015 17:08:43 +0000 Subject: avfilter/af_afade: use av_clipd() instead of nested FFMAX & FFMIN Signed-off-by: Paul B Mahol --- libavfilter/af_afade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c index 8b69cefbde..d2c07e5341 100644 --- a/libavfilter/af_afade.c +++ b/libavfilter/af_afade.c @@ -124,7 +124,7 @@ static double fade_gain(int curve, int64_t index, int range) { double gain; - gain = FFMAX(0.0, FFMIN(1.0, 1.0 * index / range)); + gain = av_clipd(1.0 * index / range, 0, 1.0); switch (curve) { case QSIN: -- cgit v1.2.3