[FFmpeg-devel] [PATCH] Extracting NTP timestamp from RTCP

Fred Rothganger frothga at sandia.gov
Mon Nov 25 21:11:04 CET 2013

On 11/14/2013 01:14 PM, Reimar Döffinger wrote:
> I believe that _someone_ at _some point_ will have to make that 
> assumption though. Unless they want to have some ugly user-interface 
> mess like every stream initially showing as "created 1970" to the 
> suddenly jump to the correct value. Either way, the short of it is 
> that I can't see that 0 as an initialization value will cause anything 
> but annoyance long-term. INT64_MAX hopefully only long beyond the time 
> we would care about. And UINT64_MAX means you have to be careful to 
> not involve anything signed at any point, unless there's a good reason 
> I'd prefer sticking with INT64_MAX (and ideally some error handling if 
> the received timestamps should be >= than that).

INT64_MAX will work. Attached is another patch which creates 
AV_NO_REALTIME and uses it instead of 0.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtsp.patch
Type: text/x-patch
Size: 4599 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131125/6ff4b02a/attachment.bin>

More information about the ffmpeg-devel mailing list