mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
TEST: Upgrade pion to v3.2.9. (#3567)
------ Co-authored-by: chundonglinlin <chundonglinlin@163.com>
This commit is contained in:
parent
104cf14d68
commit
df854339ea
1383 changed files with 118469 additions and 41421 deletions
6
trunk/3rdparty/srs-bench/vendor/github.com/pion/rtcp/util.go
generated
vendored
6
trunk/3rdparty/srs-bench/vendor/github.com/pion/rtcp/util.go
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
package rtcp
|
||||
|
||||
// getPadding Returns the padding required to make the length a multiple of 4
|
||||
func getPadding(len int) int {
|
||||
if len%4 == 0 {
|
||||
func getPadding(packetLen int) int {
|
||||
if packetLen%4 == 0 {
|
||||
return 0
|
||||
}
|
||||
return 4 - (len % 4)
|
||||
return 4 - (packetLen % 4)
|
||||
}
|
||||
|
||||
// setNBitsOfUint16 will truncate the value to size, left-shift to startIndex position and set
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue