Changeset 1445


Ignore:
Timestamp:
Sep 20, 2007 12:08:23 PM (12 years ago)
Author:
bennylp
Message:

Related to ticket #377: Fixed bug in RTCP fraction_lost calculation: the first RTCP packet incorrectly always shows positive fraction loss

File:
1 edited

Legend:

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

    r1444 r1445  
    620620    sess->rx_prior = sess->received; 
    621621     
    622     lost_interval = expected_interval - received_interval; 
     622    if (expected_interval >= received_interval) 
     623        lost_interval = expected_interval - received_interval; 
     624    else 
     625        lost_interval = 0; 
    623626     
    624627    if (expected_interval==0 || lost_interval == 0) { 
Note: See TracChangeset for help on using the changeset viewer.