对于avcc的时间戳如果为0则写1,防止后面误判成非rtmp体系

This commit is contained in:
dexter
2023-03-14 09:35:36 +08:00
parent 6e874008e4
commit 7e42a85ebf
2 changed files with 4 additions and 0 deletions

View File

@@ -238,6 +238,7 @@ func (s *Subscriber) PlayBlock(subType byte) {
case SUBTYPE_FLV:
flvHeadCache := make([]byte, 15) //内存复用
sendFlvFrame := func(t byte, ts uint32, avcc ...[]byte) {
// fmt.Println(ts)
flvHeadCache[0] = t
result := append(FLVFrame{flvHeadCache[:11]}, avcc...)
dataSize := uint32(util.SizeOfBuffers(avcc))