mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 07:18:17 +00:00
Wrong scale conversion from VFCTRL_SET_EQUALIZER, priv->saturation should
be in [0, 2] range, not [99, 101] range. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16306 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
169dd40770
commit
3726c258de
@ -103,7 +103,7 @@ static int control(struct vf_instance_s* vf, int request, void* data)
|
||||
vf->priv->hue = eq->value * M_PI / 100;
|
||||
return CONTROL_TRUE;
|
||||
} else if (!strcmp(eq->item,"saturation")) {
|
||||
vf->priv->saturation = eq->value/100.0 + 100;
|
||||
vf->priv->saturation = (eq->value + 100)/100.0;
|
||||
return CONTROL_TRUE;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user