Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtsts-server-go
This commit is contained in:
commit
199d0b012b
|
@ -33,6 +33,10 @@ type SectionCmdMsgPack struct {
|
|||
Scs []*SectionCmdMsg
|
||||
}
|
||||
|
||||
func NewSectionCmdMsgPack(scs []*SectionCmdMsg) *SectionCmdMsgPack {
|
||||
return &SectionCmdMsgPack{Ck: 0x80, Scs: scs}
|
||||
}
|
||||
|
||||
func (s *SectionCmdMsgPack) Encode() []byte {
|
||||
buf := make([]byte, 0, 1+len(s.Scs))
|
||||
buf = append(buf, s.Ck)
|
||||
|
|
Loading…
Reference in New Issue