improve coverage (#168)

This commit is contained in:
Alessandro Ros
2023-01-06 23:34:10 +01:00
committed by GitHub
parent a759ba9d01
commit 2e88705875
195 changed files with 535 additions and 63 deletions

View File

@@ -165,7 +165,7 @@ func (d *Decoder) DecodeUntilMarker(pkt *rtp.Packet) ([][]byte, time.Duration, e
}
if (len(d.naluBuffer) + len(nalus)) > h265.MaxNALUsPerGroup {
return nil, 0, fmt.Errorf("number of NALUs contained inside a single group (%d) is too big (maximum is %d)",
return nil, 0, fmt.Errorf("NALU count (%d) exceeds maximum allowed (%d)",
len(d.naluBuffer)+len(nalus), h265.MaxNALUsPerGroup)
}