From 7c0c9c5a62387abd73ba5f1f03271a6fa7754fbb Mon Sep 17 00:00:00 2001 From: y-kawawa Date: Sat, 11 Jan 2025 05:28:12 +0900 Subject: [PATCH] suppress linter nestif --- codecs/h265_packet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codecs/h265_packet.go b/codecs/h265_packet.go index d848f80..964759d 100644 --- a/codecs/h265_packet.go +++ b/codecs/h265_packet.go @@ -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] @@ -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)