FS-11080: [freeswitch-core] Auto sync of jb can fail on extreme loss #resolve

This commit is contained in:
Brian West authored and Mike Jerris committed 2018-04-02 16:55:25 -04:00
1 parent 0f3b3a5563
commit 246976b093
1 file changed
+9 -3
+9 -3
View File
@@ -2505,10 +2505,16 @@ static void check_jb(switch_core_session_t *session, const char *input, int32_t
maxlen = (a_engine->read_codec.implementation->microseconds_per_packet / 1000) * abs(maxlen);
}
if (jb_msec < 10 || jb_msec > 10000) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR,
"Invalid Jitterbuffer spec [%d] must be between 10 and 10000\n", jb_msec);
} else {
//switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR,
//"Invalid Jitterbuffer spec [%d] must be between 10 and 10000\n", jb_msec);
jb_msec = (a_engine->read_codec.implementation->microseconds_per_packet / 1000) * 1;
maxlen = jb_msec * 100;
}
if (jb_msec && maxlen) {
int qlen, maxqlen = 50;
qlen = jb_msec / (a_engine->read_impl.microseconds_per_packet / 1000);