fix bug: when packet pkTime out 1677215(0xffffff),fill chunk3 data is error

This commit is contained in:
hkmadao 2024-11-28 09:11:50 +08:00
parent 2979d3f55d
commit e13ce200ef

View File

@ -955,10 +955,6 @@ func (self *Conn) writeAMF0Msg(msgtypeid uint8, csid, msgsid uint32, args ...int
func (self *Conn) fillChunk3Header(b []byte, csid uint32, timestamp uint32) (n int) { func (self *Conn) fillChunk3Header(b []byte, csid uint32, timestamp uint32) (n int) {
b[n] = (byte(csid) & 0x3f) | 0xC0 b[n] = (byte(csid) & 0x3f) | 0xC0
n++ n++
if timestamp >= 0xffffff {
pio.PutU32BE(b[n:], timestamp)
n += 4
}
return return
} }