Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-16 22:52:16 +0300
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-19 20:34:08 +0300
commit425c0685f245d715f2da7066c5a89564c1ab146b (patch)
tree33271369c8f56a102a88e052796fe262474d20dd /libavfilter/vf_cropdetect.c
parent18bc3dc7681c2b520af62b9dea9c3d1815fc5ad7 (diff)
lavfi/vf_cropdetect: replace round by lrint
lrint is at least as fast, and more accurate. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/vf_cropdetect.c')
-rw-r--r--libavfilter/vf_cropdetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c
index d45637777f..4a89875502 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) {