去除ASC

This commit is contained in:
langhuihui
2021-02-10 22:28:53 +08:00
parent 06be2e822d
commit 0c79f75de6
3 changed files with 4 additions and 3 deletions

View File

@@ -91,7 +91,6 @@ func processRtmp(conn net.Conn) {
if msg.Body[1] != 0 {
return
}
va.ASC = msg.Body[2:]
config1, config2 := msg.Body[2], msg.Body[3]
//audioObjectType = (config1 & 0xF8) >> 3
// 1 AAC MAIN ISO/IEC 14496-3 subpart 4
@@ -150,7 +149,7 @@ func processRtmp(conn net.Conn) {
nalus = nalus[nalulen+nalulenSize:]
}
}
close(stream.WaitPub)
close(vt.WaitFirst)
}
for {
if msg, err := nc.RecvMessage(); err == nil {