mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
bugfix: fix rtcp nack blp encode bug (#2966)
Co-authored-by: Winlin <winlin@vip.126.com>
This commit is contained in:
parent
636066124a
commit
70aa6b66bb
2 changed files with 35 additions and 2 deletions
|
@ -1346,9 +1346,11 @@ srs_error_t SrsRtcpNack::encode(SrsBuffer *buffer)
|
|||
if((sn - pid) < 1) {
|
||||
srs_info("skip seq %d", sn);
|
||||
} else if( (sn - pid) > 16) {
|
||||
// add new chunk
|
||||
// append full chunk
|
||||
chunks.push_back(chunk);
|
||||
chunk.pid = sn;
|
||||
|
||||
// start new chunk
|
||||
chunk.pid = sn;
|
||||
chunk.blp = 0;
|
||||
chunk.in_use = true;
|
||||
pid = sn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue