avfilter/af_adynamicequalizer: simplify calculations

This commit is contained in:
Paul B Mahol
2023-07-06 16:47:02 +02:00
parent e52676e20b
commit 889c2529cc
2 changed files with 11 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ static int query_formats(AVFilterContext *ctx)
static double get_coef(double x, double sr)
{
return exp(-1000. / (x * sr));
return 1.0 - exp(-1000. / (x * sr));
}
typedef struct ThreadData {