将track中最新的数据可序列化

This commit is contained in:
dexter
2022-07-09 04:59:19 +08:00
parent 59db5595d9
commit f4bf54d746
8 changed files with 69 additions and 22 deletions

View File

@@ -112,9 +112,9 @@ type AVFrame[T RawSlice] struct {
IFrame bool
PTS uint32
DTS uint32
AVCC net.Buffers // 打包好的AVCC格式
RTP []*RTPFrame
Raw []T // 裸数据
AVCC net.Buffers `json:"-"` // 打包好的AVCC格式
RTP []*RTPFrame `json:"-"`
Raw []T `json:"-"` // 裸数据
canRead bool
}