Skip to content

Commit cd4bd49

Browse files
committed
Don't generate bogus "psent=1, precvd=0" stat when no packets
have been seen on that session.
1 parent 5e5b739 commit cd4bd49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rtp_analyze.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ void
140140
update_rtpp_totals(struct rtpp_session_stat *stat)
141141
{
142142

143+
if (stat->last.pcount == 0)
144+
return;
143145
stat->psent += stat->last.max_seq - stat->last.min_seq + 1;
144146
stat->precvd += stat->last.pcount;
145147
}

0 commit comments

Comments
 (0)