1
0
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:
ods15 2006-05-05 18:52:14 +00:00
parent 8e4e1ffb74
commit a54f2f777f

View File

@ -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;
}
}