On Tue, 2009-01-27 at 13:49 +0100, Olivier Guilyardi wrote:
> For example, in FFmpeg, each audio and video packets are tagged using a PTS
> which is computed using av_gettime() which calls gettimeofday().
this should be considered a bug and reported as such to the FFmpeg group
(preferably with a patch to make it use clock_gettime() if available).
gettimeofday is a non-linear, non-mononotic clock if ntp is used. it is
not suitable for timestamping in this way. without ntp, it will work
better, but it is still subject to potential non-monotonicity.
--p
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Tue Jan 27 16:15:05 2009
This archive was generated by hypermail 2.1.8 : Tue Jan 27 2009 - 16:15:05 EET