Message ID | 20220222164616.511012-3-onemda@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/3] avfilter/af_loudnorm: switch to activate | expand |
Context | Check | Description |
---|---|---|
andriy/make_aarch64_jetson | success | Make finished |
andriy/make_fate_aarch64_jetson | success | Make fate finished |
andriy/make_armv7_RPi4 | success | Make finished |
andriy/make_fate_armv7_RPi4 | fail | Make fate failed |
diff --git a/libavfilter/af_loudnorm.c b/libavfilter/af_loudnorm.c index 7c8ac3a39d..9bb0c65bb7 100644 --- a/libavfilter/af_loudnorm.c +++ b/libavfilter/af_loudnorm.c @@ -394,12 +394,8 @@ static void true_peak_limiter(LoudNormContext *s, double *out, int nb_samples, i } while (smp_cnt < nb_samples); for (n = 0; n < nb_samples; n++) { - for (c = 0; c < channels; c++) { + for (c = 0; c < channels; c++) out[c] = buf[index + c]; - if (fabs(out[c]) > ceiling) { - out[c] = ceiling * (out[c] < 0 ? -1 : 1); - } - } out += channels; index += channels; if (index >= s->limiter_buf_size)
It can cause unpleasant artifacts. Signed-off-by: Paul B Mahol <onemda@gmail.com> --- libavfilter/af_loudnorm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)