1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SquashSRS4: Refine TWCC and SDP exchange. 4.0.88

This commit is contained in:
winlin 2021-04-01 10:55:03 +08:00
parent 45b83bd22e
commit 0cc3063703
8 changed files with 89 additions and 35 deletions

View file

@ -99,7 +99,9 @@ bool SrsBuffer::empty()
bool SrsBuffer::require(int required_size)
{
srs_assert(required_size >= 0);
if (required_size < 0) {
return false;
}
return required_size <= nb_bytes - (p - bytes);
}