[FFmpeg-devel] [PATCH 08/12] lavfi/vf_crop: replace round by lrint
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sat Dec 19 06:45:34 CET 2015
lrint is at least as fast, and more accurate.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavfilter/vf_crop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 93a58da..01773fa 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;
}
--
2.6.4
More information about the ffmpeg-devel
mailing list