Fix compile warnings

This commit is contained in:
Johnny 2023-04-21 21:12:42 +08:00
parent 82bc416546
commit ce16a0a9b6

View File

@ -551,7 +551,7 @@ const void *RtcpFB::getFciPtr() const {
size_t RtcpFB::getFciSize() const {
auto fci_len = (ssize_t)getSize() - getPaddingSize() - sizeof(RtcpFB);
CHECK(fci_len >= 0);
CHECK(getSize() >= getPaddingSize() + sizeof(RtcpFB));
return fci_len;
}