From: Dragos Oancea Date: Sun, 24 Feb 2019 05:49:24 +0000 (+0000) Subject: FS-11666: RTCP: fix RENACK_TIME check (throttle when NACKing the same seq) X-Git-Tag: v1.8.6~1^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8d7c720845be5e50e17b7b60b404ac8de828cec;p=thirdparty%2Ffreeswitch.git FS-11666: RTCP: fix RENACK_TIME check (throttle when NACKing the same seq) --- diff --git a/src/switch_jitterbuffer.c b/src/switch_jitterbuffer.c index 206deb5806..a709502107 100644 --- a/src/switch_jitterbuffer.c +++ b/src/switch_jitterbuffer.c @@ -1140,8 +1140,8 @@ SWITCH_DECLARE(uint32_t) switch_jb_pop_nack(switch_jb_t *jb) seq = ntohs(*((uint16_t *) var)); then = (intptr_t) val; - if (then != 1 && switch_time_now() - then < RENACK_TIME) { - //jb_debug(jb, 3, "NACKABLE seq %u too soon to repeat\n", seq); + if (then != 1 && ((uint32_t)(switch_time_now() - then)) < RENACK_TIME) { + jb_debug(jb, 3, "NACKABLE seq %u too soon to repeat\n", seq); continue; }