// calculate the jitter average
uint32_t ljitter = time_now_ms - sess_local[s].prev_time;
- sess_local[s].jitteravg = (sess_local[s].jitteravg + ljitter)>>1;
- sess_local[s].prev_time = time_now_ms;
-
+ if (ljitter > 0)
+ {
+ sess_local[s].jitteravg = (sess_local[s].jitteravg + ljitter)>>1;
+ sess_local[s].prev_time = time_now_ms;
+ }
+
uint32_t Mmin;
if (seq_num < this_fragmentation->M)
}
assembling_frame:
- // try to assemble the frame that has the received fragment as a member
+ // try to assemble the frame that has the received fragment as a member
// get the beginning of this frame
begin_index = end_index = this_fragmentation->start_index;
if (this_fragmentation->fragment[begin_index].length)