[MPlayer-dev-eng] vf_dsize rounding error

Oded Shimon ods15 at ods15.dyndns.org
Sat May 6 08:07:50 CEST 2006


On Sat, May 06, 2006 at 01:49:23AM +0300, Ivan Kalvachev wrote:
> 2006/5/5, Oded Shimon <ods15 at ods15.dyndns.org>:
> >On Thu, May 04, 2006 at 01:49:44PM -0400, Alan Curry wrote:
> >> In -vf dsize, resolution is calculated as a float and then assigned to 
> >an int
> >> without any explicit rounding, so unlucky sizes can be computed as 
> >X.999999
> >> and rounded down, ending up 1 less than the correct size. It would be 
> >better
> >> to round to the nearest int.
> >
> >Committed
> 
> I though Alan is developer now and can apply his path by himself.

Hmm, there wasn't a threat of commit in the mail, and it is my code...

- ods15




More information about the MPlayer-dev-eng mailing list