Commit 425c0685 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavfi/vf_cropdetect: replace round by lrint

lrint is at least as fast, and more accurate.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 18bc3dc7
......@@ -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) {
......
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