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

Michael Niedermayer michaelni
Sat Feb 6 15:36:14 CET 2010


On Sat, Feb 06, 2010 at 02:38:27PM +0100, Reimar D?ffinger wrote:
> Hello,
> currently the roqvideo FATE test produces different results because of this.
> While the test needs to be changed anyway, patch below makes them give identical
> results.
> The calculation is not 100% exact since I can't multiply recording_time with
> anything to avoid an overflow (actually I am not sure about the av_mul_q of
> time_base and pts either).

see compare_ts() from nut.txt
also if we dont have such a function, it might make sense to add it to
libavutil


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100206/751dcdce/attachment.pgp>



More information about the ffmpeg-devel mailing list