You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/dynaudnorm: increment input outside of the FFMIN macro so it doesn't get double incremented
This commit is contained in:
		| @@ -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); | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user