修复音频初始化问题

This commit is contained in:
langhuihui
2021-07-12 23:24:04 +08:00
parent 5cdbc220de
commit a2f5cb87b1
5 changed files with 18 additions and 16 deletions

View File

@@ -58,6 +58,8 @@ func ParseSDP(sdpRaw string) map[string]*SDPInfo {
keyval = strings.Split(field, "/")
if len(keyval) >= 2 {
switch keyval[0] {
case "h264", "h265", "pcma", "pcmu":
info.Codec = strings.ToUpper(keyval[0])
case "H264", "H265", "PCMA", "PCMU":
info.Codec = keyval[0]
case "HEVC":