Fix skipped packets accounting. (#4604)
* Fix skipped packets accounting. No need to copy unskipped packet RTP header to skipped packet. That was causing padding bytes to be counted. Also use Header.PaddingSize as base PaddingSize is deprecated. * PaddingSize in header in utils
This commit is contained in:
@@ -54,9 +54,9 @@ func GetTestExtPacket(params *TestExtPacketParams) (*buffer.ExtPacket, error) {
|
||||
SequenceNumber: params.SequenceNumber,
|
||||
Timestamp: params.Timestamp,
|
||||
SSRC: params.SSRC,
|
||||
PaddingSize: params.PaddingSize,
|
||||
},
|
||||
Payload: make([]byte, params.PayloadSize),
|
||||
PaddingSize: params.PaddingSize,
|
||||
Payload: make([]byte, params.PayloadSize),
|
||||
}
|
||||
|
||||
raw, err := packet.Marshal()
|
||||
|
||||
Reference in New Issue
Block a user