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). v4.0.248
Co-authored-by: Winlin <winlin@vip.126.com>
This commit is contained in:
parent
e26db694ca
commit
ab81696102
4 changed files with 37 additions and 3 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