You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	lavfi/vf_cropdetect: replace round by lrint
lrint is at least as fast, and more accurate. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
		| @@ -165,7 +165,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) | ||||
|     int w, h, x, y, shrink_by; | ||||
|     AVDictionary **metadata; | ||||
|     int outliers, last_y; | ||||
|     int limit = round(s->limit); | ||||
|     int limit = lrint(s->limit); | ||||
|  | ||||
|     // ignore first 2 frames - they may be empty | ||||
|     if (++s->frame_nb > 0) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user