Commit 0ec4e6f6 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix bad packet loss computing at first RTCP report emitted

parent 3af8aa68
......@@ -184,6 +184,10 @@ void rtp_session_rtp_parse(RtpSession *session, mblk_t *mp, uint32_t local_str_t
extseq->split.lo=rtp->seq_number;
extseq->split.hi++;
}
/* the first sequence number received should be initialized at the beginning, so that the first receiver reports contains valid loss rate*/
if (stats->packet_recv==1){
rtpstream->hwrcv_seq_at_last_SR=rtp->seq_number;
}
}
/* check for possible telephone events */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment