Commit 20ee65ef authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_afade: use av_clipd() instead of nested FFMAX & FFMIN

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 742a26c4
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment