Skip to content

Commit

Permalink
Update src/rtp.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau authored Jun 7, 2024
1 parent b4b4a7a commit 8df6f1c
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>(pow(exp, 2));
}

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

0 comments on commit 8df6f1c

Please sign in to comment.