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:
reimar 2005-08-25 17:02:17 +00:00
parent 169dd40770
commit 3726c258de
1 changed files with 1 additions and 1 deletions

View File

@ -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;