[FFmpeg-devel] [PATCH] avoid floating point for -t endtime

Reimar Döffinger Reimar.Doeffinger
Sun Feb 7 08:56:14 CET 2010


On Sun, Feb 07, 2010 at 01:22:57AM +0100, Michael Niedermayer wrote:
> > +    a = ts_a * tb_a.num * tb_b.den;
> > +    b = ts_b * tb_b.num * tb_a.den;
> 
> read the nut spec again about compare_ts() this overflows for rather small
> numbers

Here is an attempt to fix compare_ts first.
It assumes that av_rescale_q does the right thing, although it does at least
use a different algorithm that convert_ts in nut.txt.
"make test" for it is still in progress.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comparets.diff
Type: text/x-diff
Size: 890 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100207/759d76cb/attachment.diff>



More information about the ffmpeg-devel mailing list