Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/af_loudnorm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_loudnorm.c b/libavfilter/af_loudnorm.c
index 8d2379f14e..ce61e985b1 100644
--- a/libavfilter/af_loudnorm.c
+++ b/libavfilter/af_loudnorm.c
@@ -455,7 +455,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
offset = pow(10., (s->target_i - global) / 20.);
offset_tp = true_peak * offset;
- s->offset = offset_tp < s->target_tp ? offset : s->target_tp - true_peak;
+ s->offset = offset_tp < s->target_tp ? offset : s->target_tp / true_peak;
s->frame_type = LINEAR_MODE;
}