[MPlayer-dev-eng] {PATCH] - improve asf demuxer's handling of streaming data

Uoti Urpala uoti.urpala at pp1.inet.fi
Thu Jun 7 11:20:56 CEST 2007


On Wed, 2007-06-06 at 18:03 -0500, John Donaghy wrote:
> Without the patch there is a loss of precision when the timestamp
> values are large. During tests I discovered that the resultant
> timestamps were the same for several frames in a row, then there was a

> -        dp->pts=time*0.0000001f;
> +        dp->pts=((double)time)*0.0000001f;

Demuxers should calculate pts using doubles so that part is correct.
However a saner way to make those calculations double precision is to
simply drop the 'f' suffix from the constants. I committed that change.




More information about the MPlayer-dev-eng mailing list