mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 13:14:36 +00:00
I screwed up keep aspect param, made behavior the opposite of man page.
0-1 were original aspect ratio instead of display... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17228 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c0e54fd248
commit
9f66514984
@ -31,7 +31,7 @@ static int config(struct vf_instance_s* vf,
|
||||
if (vf->priv->h == -2) vf->priv->h = vf->priv->w * (double)d_height / d_width;
|
||||
if (vf->priv->h == -3) vf->priv->h = vf->priv->w * (double)height / width;
|
||||
if (vf->priv->method > -1) {
|
||||
double aspect = (vf->priv->method & 2) ? ((double)d_height / d_width) : ((double)height / width);
|
||||
double aspect = (vf->priv->method & 2) ? ((double)height / width) : ((double)d_height / d_width);
|
||||
if ((vf->priv->h > vf->priv->w * aspect) ^ (vf->priv->method & 1)) {
|
||||
vf->priv->h = vf->priv->w * aspect;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user