[MPlayer-cvslog] CVS: main/libmpcodecs vf_expand.c,1.33,1.34

Oded Shimon CVS syncmail at mplayerhq.hu
Mon Dec 5 17:54:50 CET 2005


CVS change done by Oded Shimon CVS

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

Modified Files:
	vf_expand.c 
Log Message:
expand aspect works by display aspect, not video aspect.


Index: vf_expand.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_expand.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- vf_expand.c	18 Nov 2005 14:39:23 -0000	1.33
+++ vf_expand.c	5 Dec 2005 16:54:48 -0000	1.34
@@ -184,9 +184,9 @@
 #endif
     if (vf->priv->aspect) {
         if (vf->priv->exp_h < vf->priv->exp_w / vf->priv->aspect) {
-            vf->priv->exp_h = vf->priv->exp_w / vf->priv->aspect;
+            vf->priv->exp_h = vf->priv->exp_w / vf->priv->aspect * ((double)d_width/width);
         } else {
-            vf->priv->exp_w = vf->priv->exp_h * vf->priv->aspect;
+            vf->priv->exp_w = vf->priv->exp_h * vf->priv->aspect / ((double)d_height/height);
         }
     }
     if (vf->priv->round > 1) { // round up.




More information about the MPlayer-cvslog mailing list