summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--filter-accela/ftnoir_filter_accela.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp
index 24768dea..acf1e267 100644
--- a/filter-accela/ftnoir_filter_accela.cpp
+++ b/filter-accela/ftnoir_filter_accela.cpp
@@ -149,7 +149,7 @@ void accela::filter(const double* input, double *output)
{
static constexpr double nl_end = 1.5;
- if (deltas[k] <= nl_end)
+ if (fabs(deltas[k]) <= nl_end)
deltas[k] = copysign(pow(fabs(deltas[k]/nl_end), nl) * nl_end, deltas[k]);
}
}