Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/af_afade.c')
-rw-r--r--libavfilter/af_afade.c2
1 files changed, 1 insertions, 1 deletions
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: