CVS: main/libmpcodecs vf_expand.c,1.31,1.32
CVS change done by Richard Felker CVS Update of /cvsroot/mplayer/main/libmpcodecs In directory mail:/var2/tmp/cvs-serv10011/libmpcodecs Modified Files: vf_expand.c Log Message: 10l to whoever got aspect upside-down.. it's w/h, not h/w. hope this doesn't bother anyone already using it too much Index: vf_expand.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_expand.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- vf_expand.c 8 Jul 2005 06:39:47 -0000 1.31 +++ vf_expand.c 23 Oct 2005 15:25:10 -0000 1.32 @@ -183,10 +183,10 @@ else if( vf->priv->exp_h<height ) vf->priv->exp_h=height; #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; + if (vf->priv->exp_h < vf->priv->exp_w / vf->priv->aspect) { + vf->priv->exp_h = vf->priv->exp_w / vf->priv->aspect; } else { - vf->priv->exp_w = vf->priv->exp_h / vf->priv->aspect; + vf->priv->exp_w = vf->priv->exp_h * vf->priv->aspect; } } if (vf->priv->round > 1) { // round up.
participants (1)
-
syncmail@mplayerhq.hu