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
1 changed files with 2 additions and 2 deletions

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