[Freeswitch-svn] [commit] r13179 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Tue Apr 28 08:32:37 PDT 2009


Author: anthm
Date: Tue Apr 28 10:32:37 2009
New Revision: 13179

Log:
prevent div by zero

Modified:
   freeswitch/trunk/src/switch_rtp.c

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Tue Apr 28 10:32:37 2009
@@ -1500,7 +1500,7 @@
 			}
 
 			poll_loop = 1;
-			rtp_session->missed_count += (poll_sec * 1000 ) / (rtp_session->ms_per_packet / 1000);
+			rtp_session->missed_count += (poll_sec * 1000 ) / (rtp_session->ms_per_packet ? rtp_session->ms_per_packet : 20 / 1000);
 			bytes = 0;
 		}
 



More information about the Freeswitch-svn mailing list