mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 10:29:39 +00:00
avfilter/af_anlmdn: ignore too small values
This commit is contained in:
parent
8a1fc95840
commit
ed3b64402e
@ -168,7 +168,10 @@ static int filter_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
|
||||
float w;
|
||||
|
||||
av_assert0(distance >= 0.f);
|
||||
w = expf(-distance * sw);
|
||||
w = -distance * sw;
|
||||
if (w < -11.f)
|
||||
continue;
|
||||
w = expf(w);
|
||||
P += w * f[i - S + j + (j >= S)];
|
||||
Q += w;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user