# HG changeset patch # User ods15 # Date 1146855134 0 # Node ID f9b0c8fe997e517ce195525fd90f910ca51ae278 # Parent fdface43ee10b9e387b12731e5ba30c77726bd99 fix float rounding error diff -r fdface43ee10 -r f9b0c8fe997e libmpcodecs/vf_dsize.c --- a/libmpcodecs/vf_dsize.c Fri May 05 17:30:52 2006 +0000 +++ b/libmpcodecs/vf_dsize.c Fri May 05 18:52:14 2006 +0000 @@ -46,10 +46,10 @@ 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; } }