update mediacommon (#332)

This commit is contained in:
Alessandro Ros
2023-07-27 23:30:28 +02:00
committed by GitHub
parent 1249dc9569
commit 053cd9ba3e
7 changed files with 13 additions and 13 deletions

View File

@@ -170,11 +170,11 @@ func (d *Decoder) DecodeUntilMarker(pkt *rtp.Packet) ([][]byte, time.Duration, e
}
l := len(nalus)
if (d.frameBufferLen + l) > h265.MaxNALUsPerGroup {
if (d.frameBufferLen + l) > h265.MaxNALUsPerAccessUnit {
d.frameBuffer = nil
d.frameBufferLen = 0
return nil, 0, fmt.Errorf("NALU count exceeds maximum allowed (%d)",
h265.MaxNALUsPerGroup)
h265.MaxNALUsPerAccessUnit)
}
d.frameBuffer = append(d.frameBuffer, nalus...)