Skip to content

Commit

Permalink
changed function pow to number
Browse files Browse the repository at this point in the history
  • Loading branch information
evaldemar committed Jun 7, 2024
1 parent 6b43909 commit b4b4a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b4b4a7a

Please sign in to comment.