[FFmpeg-cvslog] lavfi/vf_cropdetect: replace round by lrint
Ganesh Ajjanagadde
git at videolan.org
Sat Dec 19 18:42:12 CET 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Wed Dec 16 14:52:16 2015 -0500| [425c0685f245d715f2da7066c5a89564c1ab146b] | committer: Ganesh Ajjanagadde
lavfi/vf_cropdetect: replace round by lrint
lrint is at least as fast, and more accurate.
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=425c0685f245d715f2da7066c5a89564c1ab146b
---
libavfilter/vf_cropdetect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c
index d456377..4a89875 100644
--- a/libavfilter/vf_cropdetect.c
+++ b/libavfilter/vf_cropdetect.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list