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:
parent
45b83bd22e
commit
0cc3063703
8 changed files with 89 additions and 35 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue