lrint is at least as fast, and more accurate. Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel