]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/rtp_engine: Format NTP timestamps as unsigned ints
authorMatthew Jordan <mjordan@digium.com>
Sat, 6 Sep 2014 22:20:27 +0000 (22:20 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 6 Sep 2014 22:20:27 +0000 (22:20 +0000)
commit6a701d2d8ff40fe1fb66fda2951eb4f8f100341d
treea2b5c63a347d7d2d2fbafab0d3f51c9ff9ea07bc
parent8c020015c6e58a1d027162ea339ef6256aed4402
main/rtp_engine: Format NTP timestamps as unsigned ints

On some systems, a timeval's tv_sec/tv_usec will be unsigned lont ints, as
opposed to long ints. When the RTP engine formats these as strings, it was
previously formatting them as signed integers, which can result in some
odd negative timestamp values (particularly on 32-bit systems). This patch
formats the values as unsigned long integers.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@422766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/rtp_engine.c