mirror of
				https://github.com/aler9/gortsplib
				synced 2025-11-01 02:52:36 +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:
		| @@ -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
	![49699333+dependabot[bot]@users.noreply.github.com](/assets/img/avatar_default.png) dependabot[bot]
					dependabot[bot]