aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-13 09:34:39 +0200
committerPaul B Mahol <onemda@gmail.com>2015-10-13 09:34:39 +0200
commitac6b7c47cc568b0155d332aa1cf1c6c79dfee0f1 (patch)
treefdde61962d493d85f5c52e273dc6354087777504
parent9ab98b580eb5aab7c188b3f6179f60e4a0bc0314 (diff)
downloadffmpeg-ac6b7c47cc568b0155d332aa1cf1c6c79dfee0f1.tar.gz
avfilter/af_astats: replace FFABS with fabs
-rw-r--r--libavfilter/af_astats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_astats.c b/libavfilter/af_astats.c
index f385d2e854..b3b8f2818c 100644
--- a/libavfilter/af_astats.c
+++ b/libavfilter/af_astats.c
@@ -163,9 +163,9 @@ static inline void update_stat(AudioStatsContext *s, ChannelStats *p, double d)
p->sigma_x += d;
p->sigma_x2 += d * d;
p->avg_sigma_x2 = p->avg_sigma_x2 * s->mult + (1.0 - s->mult) * d * d;
- p->min_diff = FFMIN(p->min_diff == -1 ? DBL_MAX : p->min_diff, FFABS(d - (p->min_diff == -1 ? DBL_MAX : p->last)));
- p->max_diff = FFMAX(p->max_diff, FFABS(d - (p->max_diff == -1 ? d : p->last)));
- p->diff1_sum += FFABS(d - p->last);
+ p->min_diff = FFMIN(p->min_diff == -1 ? DBL_MAX : p->min_diff, fabs(d - (p->min_diff == -1 ? DBL_MAX : p->last)));
+ p->max_diff = FFMAX(p->max_diff, fabs(d - (p->max_diff == -1 ? d : p->last)));
+ p->diff1_sum += fabs(d - p->last);
p->last = d;
p->mask |= llrint(d * (UINT64_C(1) << 63));