diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-10-23 15:25:10 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-10-23 15:25:10 +0000 |
commit | 37584f552e5935439f57ef330c8472d2c489c4af (patch) | |
tree | d2496e8136bef3ba2563c465f32ee5b3ec7bdc57 /libmpcodecs | |
parent | db1aa87238a50b5ff5fdda7750d60139cdea4f56 (diff) | |
download | mpv-37584f552e5935439f57ef330c8472d2c489c4af.tar.bz2 mpv-37584f552e5935439f57ef330c8472d2c489c4af.tar.xz |
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16838 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf_expand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vf_expand.c b/libmpcodecs/vf_expand.c index 946f84fc19..ab7b71aff0 100644 --- a/libmpcodecs/vf_expand.c +++ b/libmpcodecs/vf_expand.c @@ -183,10 +183,10 @@ static int config(struct vf_instance_s* vf, 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. |