[FFmpeg-devel] [PATCH] add timeout to udp_read
Sun Dec 27 13:15:55 CET 2009
On Sun, Dec 27, 2009 at 01:09:51PM +0100, Michael Niedermayer wrote:
> > I think it would also be a good idea to protect against the clock being
> > reset by detecting av_gettime() < network_timeout_reference_time and
> > adjusting network_timeout_reference_time.
> iam pretty sure ffmpeg will fail if the clock resets in 292
> million years
I don't mean wrap-around, I mean if someone (e.g. NTP) happens to adjust
the clock by e.g. a year, without an additional check our 10 ms timeout
would just have become a 1-year and 10 ms timeout.
It just seems reasonably simple enough to protect against this so I
thought it can't hurt...
More information about the ffmpeg-devel