Mercurial > mplayer.hg
diff libmpcodecs/vf_expand.c @ 16837:098d3c815fe2
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
author | rfelker |
---|---|
date | Sun, 23 Oct 2005 15:25:10 +0000 |
parents | 0e449f0367a4 |
children | 6ff3379a0862 |
line wrap: on
line diff
--- a/libmpcodecs/vf_expand.c Sun Oct 23 15:05:11 2005 +0000 +++ b/libmpcodecs/vf_expand.c Sun Oct 23 15:25:10 2005 +0000 @@ -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.