mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 07:34:19 +00:00
FS-8130 fix regression causing seg
This commit is contained in:
1 parent
4a56b7d145
commit
d1049e2280
2 files changed
+6
-3
No files matched your search
+2
-2
@@ -1902,7 +1902,7 @@ static int check_rtcp_and_ice(switch_rtp_t *rtp_session)
|
||||
int rtcp_ok = 0, rtcp_fb = 0;
|
||||
switch_time_t now = switch_micro_time_now();
|
||||
int rate = 0, nack_ttl = 0;
|
||||
uint32_t cur_nack[MAX_NACK - 1];
|
||||
uint32_t cur_nack[MAX_NACK];
|
||||
|
||||
if (rtp_session->flags[SWITCH_RTP_FLAG_AUTO_CNG] && rtp_session->send_msg.header.ts && rtp_session->cng_pt != INVALID_PT &&
|
||||
(rtp_session->timer.samplecount - rtp_session->last_write_samplecount >= rtp_session->samples_per_interval * 60)) {
|
||||
@@ -2064,9 +2064,9 @@ static int check_rtcp_and_ice(switch_rtp_t *rtp_session)
|
||||
ntohs(*nack & 0xFFFF));
|
||||
|
||||
rtcp_bytes += sizeof(switch_rtcp_ext_hdr_t) + sizeof(cur_nack[n]);
|
||||
cur_nack[n] = 0;
|
||||
}
|
||||
|
||||
cur_nack[n] = 0;
|
||||
nack_ttl = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user