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:50:00 +0300
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-21 19:21:20 +0300
commit2a486869d9eae998ed6e1c9f648680309ac4b6a9 (patch)
tree032c97583fc2a81ba8947c4626eae24d1196ee11 /libavfilter/vf_crop.c
parentb9c2ebeee420bc00726517f21a121ea958e73558 (diff)
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: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/vf_crop.c')
-rw-r--r--libavfilter/vf_crop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 93a58da480..01773fa3cf 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -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;
}