changeset 16305:514353affc6e

Wrong scale conversion from VFCTRL_SET_EQUALIZER, priv->saturation should be in [0, 2] range, not [99, 101] range.
author reimar
date Thu, 25 Aug 2005 17:02:17 +0000
parents d3ccd767b10d
children 7f88103a9710
files libmpcodecs/vf_hue.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_hue.c	Thu Aug 25 15:54:44 2005 +0000
+++ b/libmpcodecs/vf_hue.c	Thu Aug 25 17:02:17 2005 +0000
@@ -103,7 +103,7 @@
 			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;