mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
fix float rounding error
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18391 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8e4e1ffb74
commit
a54f2f777f
@ -46,10 +46,10 @@ static int config(struct vf_instance_s* vf,
|
||||
d_height = vf->priv->h;
|
||||
} else {
|
||||
if (vf->priv->aspect * height > width) {
|
||||
d_width = height * vf->priv->aspect;
|
||||
d_width = height * vf->priv->aspect + .5;
|
||||
d_height = height;
|
||||
} else {
|
||||
d_height = width / vf->priv->aspect;
|
||||
d_height = width / vf->priv->aspect + .5;
|
||||
d_width = width;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user