summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMamadou DIOP <bossiel@yahoo.fr>2016-01-18 19:23:09 +0100
committerMamadou DIOP <bossiel@yahoo.fr>2016-01-18 19:23:09 +0100
commite5d2be814027989ec7f8d6eecf365ffd9149b21e (patch)
tree75de0d06c5e70e9e10324ea0d9b09f51b63c20de
parent8da6e39975cdd860352b19027ac0fcfd165d6ca1 (diff)
downloaddoubango-e5d2be814027989ec7f8d6eecf365ffd9149b21e.zip
doubango-e5d2be814027989ec7f8d6eecf365ffd9149b21e.tar.gz
Fix arithmetic overflow issue when computing RTCP-RR-fraction field
-rwxr-xr-xtinyRTP/src/rtcp/trtp_rtcp_session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyRTP/src/rtcp/trtp_rtcp_session.c b/tinyRTP/src/rtcp/trtp_rtcp_session.c
index 3172278..b2f4733 100755
--- a/tinyRTP/src/rtcp/trtp_rtcp_session.c
+++ b/tinyRTP/src/rtcp/trtp_rtcp_session.c
@@ -1278,7 +1278,7 @@ static tsk_size_t SendRTCPReport(trtp_rtcp_session_t* session, event_ e)
continue;
}
if((rblock = trtp_rtcp_rblock_create_null())){
- uint32_t expected, expected_interval, received_interval, lost_interval;
+ int32_t expected, expected_interval, received_interval, lost_interval;
rblock->ssrc = source->ssrc;
// RFC 3550 - A.3 Determining Number of Packets Expected and Lost
OpenPOWER on IntegriCloud