]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_cropdetect.c
lavfi/vf_cropdetect: replace round by lrint
[ffmpeg] / libavfilter / vf_cropdetect.c
index d45637777f33fb6b0f13e90d95aaa7cef66216f1..4a89875502890ba074973da0bcec70ec2d498ed0 100644 (file)
@@ -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) {