IAX2 Stream Analysis: Fix of mean jitter calculation

Calculation was using incorrect variable so calculation was incorrect.
Patch corrected this mistake.
This commit is contained in:
Jirka Novak 2021-10-22 23:02:48 +02:00 committed by Wireshark GitLab Utility
parent 11298a5b2c
commit cf41fbd897
2 changed files with 3 additions and 1 deletions

View File

@ -111,6 +111,8 @@ The following features are new (or have been significantly updated) since versio
** Regular expressions (using "matches" or "~") must be specified using character strings. It is a syntax error to omit the double-quotes around
the regular expression. Before the syntax rules of an unquoted regex string could be difficult to predict.
* Corrected calculation of mean jitter in RTP Stream Analysis dialog and IAX2 Stram Analysis dialog
// === Removed Features and Support
// === Removed Dissectors

View File

@ -99,7 +99,7 @@ iax2_packet_analyse(tap_iax2_stat_t *statinfo,
if (statinfo->jitter > statinfo->max_jitter) {
statinfo->max_jitter = statinfo->jitter;
}
statinfo->mean_jitter = (statinfo->mean_jitter*statinfo->total_nr + current_diff) / (statinfo->total_nr+1);
statinfo->mean_jitter = (statinfo->mean_jitter*statinfo->total_nr + current_jitter) / (statinfo->total_nr+1);
}
/* regular payload change? (CN ignored) */
if (!(statinfo->flags & STAT_FLAG_FIRST)