[vlc-commits] rotate: stick to single precision arithmetic

Rémi Denis-Courmont git at videolan.org
Wed Aug 13 20:29:15 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 21:20:10 2014 +0300| [ae8de060162e08318cbf935dc0a2c9e0a65f62b3] | committer: Rémi Denis-Courmont

rotate: stick to single precision arithmetic

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae8de060162e08318cbf935dc0a2c9e0a65f62b3
---

 modules/video_filter/rotate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_filter/rotate.c b/modules/video_filter/rotate.c
index 2cfb868..d30b5e5 100644
--- a/modules/video_filter/rotate.c
+++ b/modules/video_filter/rotate.c
@@ -92,7 +92,7 @@ struct filter_sys_t
 
 static void store_trigo( struct filter_sys_t *sys, float f_angle )
 {
-    f_angle *= M_PI / 180.f; /* degrees -> radians */
+    f_angle *= (float)(M_PI / 180.); /* degrees -> radians */
 
     uint16_t i_sin = lroundf(sinf(f_angle) * 4096.f);
     uint16_t i_cos = lroundf(cosf(f_angle) * 4096.f);



More information about the vlc-commits mailing list