Commit 261a6537 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sharpen: use single precision

parent 88175f01
......@@ -49,7 +49,7 @@ static void Close(vlc_object_t *);
#define RADIUS_TEXT N_("Radius")
#define RADIUS_LONGTEXT N_("Radius in pixels")
#define STRENGTH_MIN (0.51)
#define STRENGTH_MIN (0.51f)
#define STRENGTH_MAX (255)
#define STRENGTH_TEXT N_("Strength")
#define STRENGTH_LONGTEXT N_("Strength used to modify the value of a pixel")
......
......@@ -243,7 +243,7 @@ static int SharpenCallback( vlc_object_t *p_this, char const *psz_var,
filter_sys_t *p_sys = (filter_sys_t *)p_data;
vlc_mutex_lock( &p_sys->lock );
init_precalc_table( p_sys, VLC_CLIP( newval.f_float, 0., 2. ) );
init_precalc_table( p_sys, VLC_CLIP( newval.f_float, 0.f, 2.f ) );
vlc_mutex_unlock( &p_sys->lock );
return VLC_SUCCESS;
}
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