mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
update mediacommon (#332)
This commit is contained in:
@@ -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...)
|
||||
|
Reference in New Issue
Block a user