From d47d445a87f67f801ecbda72f65e4bd43e340a41 Mon Sep 17 00:00:00 2001 From: Johannes Singler Date: Mon, 20 Aug 2018 12:31:03 +0200 Subject: Calculate RTP delta time even if clock rate is unknown. Change-Id: If61c3166774a25f2c22b68c1e06c372088cae575 Reviewed-on: https://code.wireshark.org/review/29199 Petri-Dish: Alexis La Goutte Reviewed-by: Anders Broman --- ui/tap-rtp-analysis.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/tap-rtp-analysis.c') diff --git a/ui/tap-rtp-analysis.c b/ui/tap-rtp-analysis.c index ff6ca312f2..474761ed04 100644 --- a/ui/tap-rtp-analysis.c +++ b/ui/tap-rtp-analysis.c @@ -383,6 +383,10 @@ rtppacket_analyse(tap_rtp_stat_t *statinfo, statinfo->sumTS += 1.0 * nominaltime; statinfo->sumt2 += 1.0 * current_time * current_time; statinfo->sumtTS += 1.0 * current_time * nominaltime; + } else { + if (!statinfo->first_packet) { + statinfo->delta = current_time-(statinfo->time); + } } /* Calculate the BW in Kbps adding the IP+UDP header to the RTP -> 20bytes(IP) + 8bytes(UDP) */ -- cgit v1.2.3