[PATCH] rtpdec: make the NTP time values unsigned.
As per RFC3550, section 4, the NTP time is provided as 64-bit unsigned integer, so follow the same logic here. --- libavformat/rtpdec.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h index 86af2b9..87fd419 100644 --- a/libavformat/rtpdec.h +++ b/libavformat/rtpdec.h @@ -148,8 +148,8 @@ struct RTPDemuxContext { RTPStatistics statistics; ///< Statistics for this stream (used by RTCP receiver reports) /* rtcp sender statistics receive */ - int64_t last_rtcp_ntp_time; // TODO: move into statistics - int64_t first_rtcp_ntp_time; // TODO: move into statistics + uint64_t last_rtcp_ntp_time; // TODO: move into statistics + uint64_t first_rtcp_ntp_time; // TODO: move into statistics uint32_t last_rtcp_timestamp; // TODO: move into statistics /* rtcp sender statistics */ -- 1.7.1.1
On 07/14/2010 09:51 AM, Diego Elio 'Flameeyes' Petten? wrote:
As per RFC3550, section 4, the NTP time is provided as 64-bit unsigned integer, so follow the same logic here.
ok -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero
On Wed, Jul 14, 2010 at 09:59:07AM +0200, Luca Barbato wrote:
On 07/14/2010 09:51 AM, Diego Elio 'Flameeyes' Pettenò wrote:
As per RFC3550, section 4, the NTP time is provided as 64-bit unsigned integer, so follow the same logic here.
ok
applied thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Old school: Use the lowest level language in which you can solve the problem conveniently. New school: Use the highest level language in which the latest supercomputer can solve the problem without the user falling asleep waiting.
participants (4)
-
flameeyes@gmail.com -
lu_zero@gentoo.org -
martin@martin.st -
Michael Niedermayer