mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08: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