Same for transmit core
authorMark Spencer <markster@digium.com>
Sat, 20 Mar 2004 05:22:52 +0000 (05:22 +0000)
committerMark Spencer <markster@digium.com>
Sat, 20 Mar 2004 05:22:52 +0000 (05:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2487 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index 50ec19a..5ebaf58 100755 (executable)
--- a/rtp.c
+++ b/rtp.c
@@ -861,6 +861,7 @@ static unsigned int calc_txstamp(struct ast_rtp *rtp, struct timeval *delivery)
        unsigned int ms;
        if (!rtp->txcore.tv_sec && !rtp->txcore.tv_usec) {
                gettimeofday(&rtp->txcore, NULL);
+               rtp->txcore.tv_usec -= rtp->txcore.tv_usec % 20000;
        }
        if (delivery && (delivery->tv_sec || delivery->tv_usec)) {
                /* Use previous txcore */