[MPlayer-cvslog] CVS: main/libmpcodecs vf_dsize.c,1.3,1.4

Oded Shimon CVS syncmail at mplayerhq.hu
Tue Dec 20 18:38:46 CET 2005


CVS change done by Oded Shimon CVS

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

Modified Files:
	vf_dsize.c 
Log Message:
I screwed up keep aspect param, made behavior the opposite of man page.
0-1 were original aspect ratio instead of display...


Index: vf_dsize.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_dsize.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vf_dsize.c	18 Nov 2005 14:39:23 -0000	1.3
+++ vf_dsize.c	20 Dec 2005 17:38:43 -0000	1.4
@@ -31,7 +31,7 @@
 		if (vf->priv->h == -2) vf->priv->h = vf->priv->w * (double)d_height / d_width;
 		if (vf->priv->h == -3) vf->priv->h = vf->priv->w * (double)height / width;
 		if (vf->priv->method > -1) {
-			double aspect = (vf->priv->method & 2) ? ((double)d_height / d_width) : ((double)height / width);
+			double aspect = (vf->priv->method & 2) ? ((double)height / width) : ((double)d_height / d_width);
 			if ((vf->priv->h > vf->priv->w * aspect) ^ (vf->priv->method & 1)) {
 				vf->priv->h = vf->priv->w * aspect;
 			} else {




More information about the MPlayer-cvslog mailing list