[vlc-commits] Using fabsf for floating value instead of abs
Thierry Foucu
git at videolan.org
Wed Sep 10 22:01:49 CEST 2014
vlc | branch: master | Thierry Foucu <tfoucu at gmail.com> | Tue Sep 9 11:22:43 2014 -0700| [f1cfcbfd8f76d4197f66802944e926f848d8dfaf] | committer: Rémi Denis-Courmont
Using fabsf for floating value instead of abs
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1cfcbfd8f76d4197f66802944e926f848d8dfaf
---
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