This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avfilter/af_afade: use av_clipd() instead of nested FFMAX & FFMIN
Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.8
Paul B Mahol
10 years ago
parent
742a26c489
commit
20ee65ef73
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavfilter/af_afade.c
+ 1
- 1
libavfilter/af_afade.c
View File
@@ -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:
Write
Preview
Loading…
Cancel
Save