[FFmpeg-cvslog] lavfi/vf_crop: replace round by lrint
Ganesh Ajjanagadde
git at videolan.org
Mon Dec 21 17:31:46 CET 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Wed Dec 16 14:50:00 2015 -0500| [2a486869d9eae998ed6e1c9f648680309ac4b6a9] | committer: Ganesh Ajjanagadde
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2a486869d9eae998ed6e1c9f648680309ac4b6a9
---
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;
}
More information about the ffmpeg-cvslog
mailing list