diff options
-rw-r--r-- | libavfilter/af_dynaudnorm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_dynaudnorm.c b/libavfilter/af_dynaudnorm.c index 4b9153e418..09d2aeb816 100644 --- a/libavfilter/af_dynaudnorm.c +++ b/libavfilter/af_dynaudnorm.c @@ -490,6 +490,7 @@ static void update_gain_history(DynamicAudioNormalizerContext *s, int channel, double smoothed; av_assert0(cqueue_size(s->gain_history_minimum[channel]) == s->filter_size); smoothed = gaussian_filter(s, s->gain_history_minimum[channel]); + smoothed = FFMIN(smoothed, cqueue_peek(s->gain_history_minimum[channel], s->filter_size / 2)); cqueue_enqueue(s->gain_history_smoothed[channel], smoothed); |