[vlc-devel] [PATCH] Using fabsf for floating value instead of abs
Thierry Foucu
tfoucu at gmail.com
Tue Sep 9 20:22:43 CEST 2014
---
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 )
--
2.1.0.rc2.206.gedb03e5
More information about the vlc-devel
mailing list