[vlc-commits] Using fabsf for floating value instead of abs

Thierry Foucu git at videolan.org
Fri Sep 12 09:12:05 CEST 2014


vlc/vlc-2.2 | branch: master | Thierry Foucu <tfoucu at gmail.com> | Tue Sep  9 11:22:43 2014 -0700| [001134195f8392f3f3e649091dc98f9250a31dec] | committer: Jean-Baptiste Kempf

Using fabsf for floating value instead of abs

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit f1cfcbfd8f76d4197f66802944e926f848d8dfaf)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/visualization/visual/effects.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/visualization/visual/effects.c b/modules/visualization/visual/effects.c
index bf30c84..7b09890 100644
--- a/modules/visualization/visual/effects.c
+++ b/modules/visualization/visual/effects.c
@@ -962,8 +962,8 @@ static int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
         p_sample += p_effect->i_nb_chans;
     }
 
-    i_value_l = abs(i_value_l);
-    i_value_r = abs(i_value_r);
+    i_value_l = fabsf(i_value_l);
+    i_value_r = fabsf(i_value_r);
 
     /* Stay under maximum value admited */
     if ( i_value_l > 200 * M_PI_2 )



More information about the vlc-commits mailing list