Commit 2a486869 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

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: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent b9c2ebee
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment