mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfilter/af_afade: use av_clipd() instead of nested FFMAX & FFMIN
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
742a26c489
commit
20ee65ef73
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user