From 5b10f66ee8761bd077623b8b8e70d7220eb4e67a Mon Sep 17 00:00:00 2001 From: Vladimir Voronin Date: Fri, 7 Jun 2024 11:14:13 +0300 Subject: [PATCH] changed function pow to number --- src/rtp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtp.cpp b/src/rtp.cpp index a97491eb6..515e69141 100644 --- a/src/rtp.cpp +++ b/src/rtp.cpp @@ -545,7 +545,7 @@ void RtcpRemb::preparePacket(SSRC senderSSRC, unsigned int numSSRC, unsigned int void RtcpRemb::setBitrate(unsigned int numSSRC, unsigned int in_bitrate) { unsigned int exp = 0; - while (in_bitrate > pow(2, 18) - 1) { + while (in_bitrate > 0x3FFFF) { exp++; in_bitrate /= 2; }