优化代码

This commit is contained in:
dexter
2023-02-02 12:08:16 +08:00
parent f32f44db40
commit 5ddbd7a852

View File

@@ -134,7 +134,7 @@ func (p *RTSPPublisher) SetTracks() error {
if config, ok := fmtp["config"]; ok {
asc, _ := hex.DecodeString(config)
// 复用AVCC写入逻辑解析出AAC的配置信息
at.WriteAVCCSequenceHead(asc)
at.WriteSequenceHead(append([]byte{0xAF, 0x00}, asc...))
} else {
RTSPPlugin.Warn("aac no config")
}