Skip to content

Commit

Permalink
Update src/rtp.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Paul-Louis Ageneau <[email protected]>
  • Loading branch information
evaldemar and paullouisageneau authored May 28, 2024
1 parent 3f2364a commit 063baba
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 @@ -563,7 +563,7 @@ unsigned int RtcpRemb::getNumSSRC() { return ntohl(_bitrate) >> 24u; }
unsigned int RtcpRemb::getBitrate() {
uint32_t br = ntohl(_bitrate);
uint8_t exp = (br << 8u) >> 26u;
return (br & 0x3FFFF) * (unsigned int)pow(exp, 2);
return (br & 0x3FFFF) * static_cast<unsigned int>(std::pow(exp, 2));
}

unsigned int RtcpPli::Size() { return sizeof(RtcpFbHeader); }
Expand Down

0 comments on commit 063baba

Please sign in to comment.