You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	lavfi/vf_crop: replace round by lrint
lrint is at least as fast, avoids an implicit cast, and uses a superior rounding mode. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
		| @@ -126,7 +126,7 @@ static inline int normalize_double(int *n, double d) | ||||
|         *n = d > INT_MAX ? INT_MAX : INT_MIN; | ||||
|         ret = AVERROR(EINVAL); | ||||
|     } else | ||||
|         *n = round(d); | ||||
|         *n = lrint(d); | ||||
|  | ||||
|     return ret; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user