mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Cover protocol stack RTMP. 3.0.63
This commit is contained in:
parent
a726a14b37
commit
9067786bd3
2 changed files with 64 additions and 0 deletions
|
@ -284,6 +284,11 @@ int SrsSharedPtrMessage::count()
|
|||
|
||||
bool SrsSharedPtrMessage::check(int stream_id)
|
||||
{
|
||||
// Ignore error when message has no payload.
|
||||
if (!ptr) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// we donot use the complex basic header,
|
||||
// ensure the basic header is 1bytes.
|
||||
if (ptr->header.perfer_cid < 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue