mirror of https://bitbucket.org/ausocean/av.git
Reverted Session.clientBW2 to uint8.
This commit is contained in:
parent
e778488aba
commit
3ab2c1f69a
|
@ -260,7 +260,7 @@ func handlePacket(s *Session, pkt *packet) error {
|
|||
case packetTypeClientBW:
|
||||
s.clientBW = amf.DecodeInt32(pkt.body[:4])
|
||||
if pkt.bodySize > 4 {
|
||||
s.clientBW2 = uint32(pkt.body[4])
|
||||
s.clientBW2 = pkt.body[4]
|
||||
} else {
|
||||
s.clientBW2 = 0xff
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ type Session struct {
|
|||
streamID int32
|
||||
serverBW uint32
|
||||
clientBW uint32
|
||||
clientBW2 uint32
|
||||
clientBW2 uint8
|
||||
isPlaying bool
|
||||
numInvokes int32
|
||||
methodCalls []method
|
||||
|
|
Loading…
Reference in New Issue