aboutsummaryrefslogtreecommitdiffstats
path: root/ui/tap-rtp-analysis.c
diff options
context:
space:
mode:
authorJohannes Singler <johannes@singler.name>2018-08-20 12:31:03 +0200
committerAnders Broman <a.broman58@gmail.com>2018-08-21 04:06:27 +0000
commitd47d445a87f67f801ecbda72f65e4bd43e340a41 (patch)
tree73f32cc7196c8ae8afb255b0abc5d7b85d57193f /ui/tap-rtp-analysis.c
parent712b2df7c999cb2ec4ab8acca2aa3300b74496d9 (diff)
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 <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/tap-rtp-analysis.c')
-rw-r--r--ui/tap-rtp-analysis.c4
1 files changed, 4 insertions, 0 deletions
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) */