diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-04-19 17:25:09 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-02-28 10:52:45 +0100 |
commit | 332214af6f77c4e91cd58abfc83ec2a46ea566af (patch) | |
tree | 068b5a9f43ca6e6246180150d1f7b707aa4b6256 /tests/jibuf/jibuf_tool.c | |
parent | 2c730a4c02dc0d460a11a8215d6d0a27ec978824 (diff) |
jibuf: Take RTP marker into account
Change-Id: Ie142acfb45650e0af775f58226fd191beaf8178e
Diffstat (limited to 'tests/jibuf/jibuf_tool.c')
-rw-r--r-- | tests/jibuf/jibuf_tool.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/jibuf/jibuf_tool.c b/tests/jibuf/jibuf_tool.c index 78eece0..4a35a94 100644 --- a/tests/jibuf/jibuf_tool.c +++ b/tests/jibuf/jibuf_tool.c @@ -214,7 +214,9 @@ void dequeue_cb(struct msgb *msg, void *data) gettimeofday(&pinfo->postqueue.ts, NULL); pinfo->postqueue.timestamp = htonl(rtph->timestamp); - if (postqueue_started) { + /* If pkt->marker -> init of talkspurt, there may be missing packets before, + * better to start calculating the jitter from here */ + if (postqueue_started && !rtph->marker) { /* In random test mode we now the sender time, so we get real * jitter results using it */ if(opt_test_rand) { @@ -265,7 +267,9 @@ void pkt_arrived_cb(void *data) gettimeofday(&pinfo->prequeue.ts, NULL); pinfo->prequeue.timestamp = htonl(rtph->timestamp); - if (prequeue_started) { + /* If pkt->marker -> init of talkspurt, there may be missing packets before, + * better to start calculating the jitter from here */ + if (prequeue_started && !rtph->marker) { /* In random test mode we now the sender time, so we get real * jitter results using it */ if(opt_test_rand) { |