Changeset 378 for pjproject


Ignore:
Timestamp:
Apr 4, 2006 1:12:19 PM (19 years ago)
Author:
bennylp
Message:

Changed the packet lost calculation (previously it always reported at least 1 packet lost)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/rtcp.c

    r321 r378  
    161161    expected = pj_ntohl(rtcp_pkt->rr.last_seq) - s->seq_ctrl.base_seq + 1; 
    162162    u32 = expected - s->received; 
     163    if (u32 == 1) u32 = 0; 
    163164    rtcp_pkt->rr.total_lost_2 = (u32 >> 16) & 0x00FF; 
    164165    rtcp_pkt->rr.total_lost_1 = (u32 >> 8) & 0x00FF; 
Note: See TracChangeset for help on using the changeset viewer.