mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-17 10:28:13 +00: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:
parent
b9c2ebeee4
commit
2a486869d9
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user