Commit 7b39874d authored by Simon Morlat's avatar Simon Morlat
Browse files

fix possible divide by zero

parent eb4f5437
......@@ -239,7 +239,7 @@ static void report_block_init(report_block_t *b, RtpSession *session){
if (stream->hwrcv_seq_at_last_SR!=0){
if (stream->hwrcv_since_last_SR!=0){
if ( session->flags & RTCP_OVERRIDE_LOST_PACKETS ) {
/* If the test mode is enabled, replace the lost packet field with the test vector value set by rtp_session_rtcp_set_lost_packet_value() */
packet_loss = session->lost_packets_test_vector;
......@@ -367,7 +367,6 @@ static mblk_t * make_rr(RtpSession *session){
return cm;
static mblk_t * make_sr(RtpSession *session){
mblk_t *cm=NULL;
mblk_t *sdes=NULL;
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