mirror of
https://github.com/aler9/gortsplib
synced 2025-11-01 11:02:41 +08:00
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:
2
go.mod
2
go.mod
@@ -3,7 +3,7 @@ module github.com/bluenviron/gortsplib/v4
|
||||
go 1.21
|
||||
|
||||
require (
|
||||
github.com/bluenviron/mediacommon v1.13.2
|
||||
github.com/bluenviron/mediacommon v1.13.3
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/pion/rtcp v1.2.15
|
||||
github.com/pion/rtp v1.8.7-0.20240429002300-bc5124c9d0d0
|
||||
|
||||
4
go.sum
4
go.sum
@@ -2,8 +2,8 @@ github.com/asticode/go-astikit v0.30.0 h1:DkBkRQRIxYcknlaU7W7ksNfn4gMFsB0tqMJflx
|
||||
github.com/asticode/go-astikit v0.30.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0=
|
||||
github.com/asticode/go-astits v1.13.0 h1:XOgkaadfZODnyZRR5Y0/DWkA9vrkLLPLeeOvDwfKZ1c=
|
||||
github.com/asticode/go-astits v1.13.0/go.mod h1:QSHmknZ51pf6KJdHKZHJTLlMegIrhega3LPWz3ND/iI=
|
||||
github.com/bluenviron/mediacommon v1.13.2 h1:Ssq+59ZtPm5f9iAVVugWNOyl89Vp0G758RMv033lkik=
|
||||
github.com/bluenviron/mediacommon v1.13.2/go.mod h1:tffg+sPMErUIe7WMq7ZlYry/rPE6TyENWCrYT5JWcgs=
|
||||
github.com/bluenviron/mediacommon v1.13.3 h1:PgprN9mAd/F5ew7Ym+UZCiCJstQVT5mZXtmN9JZvv4Y=
|
||||
github.com/bluenviron/mediacommon v1.13.3/go.mod h1:RrO01FltoVUlTBGXbOYtmx1ft1oBOpLxfNGsYlaFAO8=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
|
||||
@@ -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:]
|
||||
|
||||
Reference in New Issue
Block a user