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

Oded Shimon CVS syncmail at mplayerhq.hu
Fri May 5 20:52:17 CEST 2006


CVS change done by Oded Shimon CVS

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

Modified Files:
	vf_dsize.c 
Log Message:
fix float rounding error


Index: vf_dsize.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_dsize.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vf_dsize.c	20 Dec 2005 17:38:43 -0000	1.4
+++ vf_dsize.c	5 May 2006 18:52:14 -0000	1.5
@@ -46,10 +46,10 @@
 		d_height = vf->priv->h;
 	} else {
 		if (vf->priv->aspect * height > width) {
-			d_width = height * vf->priv->aspect;
+			d_width = height * vf->priv->aspect + .5;
 			d_height = height;
 		} else {
-			d_height = width / vf->priv->aspect;
+			d_height = width / vf->priv->aspect + .5;
 			d_width = width;
 		}
 	}




More information about the MPlayer-cvslog mailing list