Commit 448c88e1 authored by Andy's avatar Andy Committed by Paul B Mahol

avfilter/dynaudnorm: increment input outside of the FFMIN macro so it doesn't...

avfilter/dynaudnorm: increment input outside of the FFMIN macro so it doesn't get double incremented
parent abaeeb3c
......@@ -460,7 +460,8 @@ static void update_gain_history(DynamicAudioNormalizerContext *s, int channel,
int input = pre_fill_size;
while (cqueue_size(s->gain_history_minimum[channel]) < pre_fill_size) {
initial_value = FFMIN(initial_value, cqueue_peek(s->gain_history_original[channel], ++input));
input++;
initial_value = FFMIN(initial_value, cqueue_peek(s->gain_history_original[channel], input));
cqueue_enqueue(s->gain_history_minimum[channel], initial_value);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment