Skip to content

Commit

Permalink
suppress linter nestif
Browse files Browse the repository at this point in the history
  • Loading branch information
y-kawawa committed Jan 10, 2025
1 parent 5c4a534 commit f27ffa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codecs/h265_packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ func (p *H265Payloader) Payload(mtu uint16, payload []byte) [][]byte { //nolint:
if len(bufferedNALUs) == 0 {
return
}
if len(bufferedNALUs) == 1 {
if len(bufferedNALUs) == 1 { //nolint:nestif
// emit this as a single NALU packet
nalu := bufferedNALUs[0]

Expand Down Expand Up @@ -1091,7 +1091,7 @@ func (p *H265Payloader) Payload(mtu uint16, payload []byte) [][]byte { //nolint:
if p.AddDONL {
naluLen += 2
}
if naluLen <= int(mtu) {
if naluLen <= int(mtu) { //nolint:nestif
// this nalu fits into a single packet, either it can be emitted as
// a single nalu or appended to the previous aggregation packet
marginalAggregationSize := calcMarginalAggregationSize(nalu)
Expand Down

0 comments on commit f27ffa0

Please sign in to comment.