chore: fix a large number of spelling issues (#4147)
Signed-off-by: changgesi <changgesi@outlook.com>
This commit is contained in:
@@ -430,7 +430,7 @@ func IsH265KeyFrame(payload []byte) (kf bool) {
|
||||
case naluType == 48: // AP
|
||||
idx := 2
|
||||
for idx < len(payload)-2 {
|
||||
// TODO: check the DONL field (controled by sprop-max-don-diff)
|
||||
// TODO: check the DONL field (controlled by sprop-max-don-diff)
|
||||
size := binary.BigEndian.Uint16(payload[idx:])
|
||||
idx += 2
|
||||
if idx >= len(payload) {
|
||||
|
||||
@@ -674,7 +674,7 @@ func (c *congestionDetector) HandleTWCCFeedback(report *rtcp.TransportLayerCC) {
|
||||
}
|
||||
}
|
||||
|
||||
// 1. go through the TWCC feedback report and record recive time as reported by remote
|
||||
// 1. go through the TWCC feedback report and record receive time as reported by remote
|
||||
// 2. process acknowledged packet and group them
|
||||
//
|
||||
// losses are not recorded if a feedback report is completely lost.
|
||||
@@ -1149,7 +1149,7 @@ func (c *congestionDetector) updateCongestionState(state bwe.CongestionState) (b
|
||||
// when in congested state, monitor changes in captured traffic ratio (CTR)
|
||||
// to ensure allocations are in line with latest estimates, it is possible that
|
||||
// the estimate is incorrect when congestion starts and the allocation may be
|
||||
// sub-optimal and not enough to reduce/relieve congestion, by monitoing CTR
|
||||
// sub-optimal and not enough to reduce/relieve congestion, by monitoring CTR
|
||||
// on a continuous basis allocations can be adjusted in the direction of
|
||||
// reducing/relieving congestion
|
||||
if state == bwe.CongestionStateCongested && fromState != bwe.CongestionStateCongested {
|
||||
|
||||
@@ -701,7 +701,7 @@ func (f *Forwarder) SetRefSenderReport(layer int32, srData *livekit.RTCPSenderRe
|
||||
//
|
||||
// It could happen like this
|
||||
// 1. Normal operation: publisher sending sender reports and
|
||||
// suscribers use reports from publisher to calculate and send
|
||||
// subscribers use reports from publisher to calculate and send
|
||||
// RTCP sender report.
|
||||
// 2. Publisher pauses: there are no more reports.
|
||||
// 3. When paused, subscriber can still use the publisher side sender
|
||||
|
||||
@@ -224,7 +224,7 @@ func (r *RTPStatsReceiver) Update(
|
||||
// Very old time stamp, happens under the following conditions
|
||||
// - resume after long mute, big time stamp jump
|
||||
// - an out of order packet from before the mute arrives (unsure what causes this
|
||||
// very old packet to be trasmitted from remote), causing time stamp to jump back
|
||||
// very old packet to be transmitted from remote), causing time stamp to jump back
|
||||
// to before mute, but it appears like it has rolled over.
|
||||
// Use a threshold against expected to ignore these.
|
||||
if gapSN < 0 && gapTS > 0 {
|
||||
|
||||
@@ -645,7 +645,7 @@ func (r *RTPStatsSender) UpdateFromReceiverReport(rr rtcp.ReceptionReport) (rtt
|
||||
// should not roll over for long time, for e. g. it will approximately take 100 days at 500 pps).
|
||||
// So, there seems to be a remote reporter issue where the sequence number rollover is missed.
|
||||
//
|
||||
// catch up till diffrence between highest sent and highest received via receiver report is
|
||||
// catch up till difference between highest sent and highest received via receiver report is
|
||||
// less than full 16-bit range.
|
||||
//
|
||||
// in a different flavor, there are clients that do not report properly,
|
||||
|
||||
@@ -65,7 +65,7 @@ func TestFrameNumberWrapper(t *testing.T) {
|
||||
// frame out of order
|
||||
firstF = secondF
|
||||
secondF = getFrame(firstF, false)
|
||||
// it is possile that an out of order non-keyframe has been converted to in order frame number if the diff is 32768
|
||||
// it is possible that an out of order non-keyframe has been converted to in order frame number if the diff is 32768
|
||||
// that is ok because the client can't decode in such case and always need to wait for the key frame.
|
||||
// so it is just a failure of test case and increase the frame number here.
|
||||
if secondF-firstF == 0x8000 {
|
||||
|
||||
Reference in New Issue
Block a user