Bump github.com/bluenviron/mediacommon from 1.13.2 to 1.13.3 (#674)

* Bump github.com/bluenviron/mediacommon from 1.13.2 to 1.13.3

Bumps [github.com/bluenviron/mediacommon](https://github.com/bluenviron/mediacommon) from 1.13.2 to 1.13.3.
- [Commits](https://github.com/bluenviron/mediacommon/compare/v1.13.2...v1.13.3)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/mediacommon
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix lint

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2025-01-02 12:45:18 +01:00
committed by GitHub
parent c548551701
commit ec919809a4
3 changed files with 9 additions and 7 deletions

View File

@@ -112,8 +112,9 @@ func (e *Encoder) Encode(obus [][]byte) ([]*rtp.Packet, error) {
needed := obuLen + 2
if needed <= avail {
buf := make([]byte, av1.LEB128MarshalSize(uint(obuLen)))
av1.LEB128MarshalTo(uint(obuLen), buf)
obuLenLEB := av1.LEB128(obuLen)
buf := make([]byte, obuLenLEB.MarshalSize())
obuLenLEB.MarshalTo(buf)
curPacket.Payload = append(curPacket.Payload, buf...)
curPacket.Payload = append(curPacket.Payload, obu...)
curPayloadLen += len(buf) + obuLen
@@ -122,8 +123,9 @@ func (e *Encoder) Encode(obus [][]byte) ([]*rtp.Packet, error) {
if avail > 2 {
fragmentLen := avail - 2
buf := make([]byte, av1.LEB128MarshalSize(uint(fragmentLen)))
av1.LEB128MarshalTo(uint(fragmentLen), buf)
fragmentLenLEB := av1.LEB128(fragmentLen)
buf := make([]byte, fragmentLenLEB.MarshalSize())
fragmentLenLEB.MarshalTo(buf)
curPacket.Payload = append(curPacket.Payload, buf...)
curPacket.Payload = append(curPacket.Payload, obu[:fragmentLen]...)
obu = obu[fragmentLen:]