解析 RTP 包时,将 RTP 的扩展部分解析出来

This commit is contained in:
kunmeng
2025-01-24 11:46:13 +08:00
parent dc22c36964
commit bcb44378a5
2 changed files with 19 additions and 3 deletions

View File

@@ -191,7 +191,7 @@ const avCodecTypeMagic = 233333
// CodecData is some important bytes for initializing audio/video decoder,
// can be converted to VideoCodecData or AudioCodecData using:
//
// codecdata.(AudioCodecData) or codecdata.(VideoCodecData)
// codecdata.(AudioCodecData) or codecdata.(VideoCodecData)
//
// for H264, CodecData is AVCDecoderConfigure bytes, includes SPS/PPS.
type CodecData interface {
@@ -255,6 +255,8 @@ type Packet struct {
Time time.Duration // packet decode time
Duration time.Duration //packet duration
Data []byte // packet data
Extension bool
Extensions []byte
}
// Raw audio frame.