rtp: do not overflow PTS (fixes #26258)
VLC does not handle negative timestamps so far. So the initial NTP reference timestamp should be positive enough that the extrapolated PTS will not end up negative when the RTP packet timestamp is lower than the reference RTP timestamp. In that case the PTS is lower than the NTP reference. While 2^62 was a very safe value in that respect, it lead to integer overflows in the clock and in time base conversion code. To avoid this, we pick a default NTP reference value equal to the closest power of two of the NTP time of this changeset: 2^52 is in 2042 CE, 2^51 in 1971 CE.
parent
c8c78f75
No related branches found
No related tags found
Loading
Please register or sign in to comment