Commit 00113419 authored by Thierry Foucu's avatar Thierry Foucu Committed by Jean-Baptiste Kempf

Using fabsf for floating value instead of abs

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit f1cfcbfd8f76d4197f66802944e926f848d8dfaf)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 83de7375
...@@ -962,8 +962,8 @@ static int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout, ...@@ -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; p_sample += p_effect->i_nb_chans;
} }
i_value_l = abs(i_value_l); i_value_l = fabsf(i_value_l);
i_value_r = abs(i_value_r); i_value_r = fabsf(i_value_r);
/* Stay under maximum value admited */ /* Stay under maximum value admited */
if ( i_value_l > 200 * M_PI_2 ) if ( i_value_l > 200 * M_PI_2 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment