[MPlayer-cvslog] CVS: main/libmpcodecs vf_hue.c,1.4,1.5

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Aug 25 19:02:20 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv3993

Modified Files:
	vf_hue.c 
Log Message:
Wrong scale conversion from VFCTRL_SET_EQUALIZER, priv->saturation should
be in [0, 2] range, not [99, 101] range.


Index: vf_hue.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_hue.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vf_hue.c	16 Feb 2005 23:46:59 -0000	1.4
+++ vf_hue.c	25 Aug 2005 17:02:17 -0000	1.5
@@ -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;




More information about the MPlayer-cvslog mailing list