mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-10-04 15:22:51 +08:00
修复对Codec判断
This commit is contained in:
@@ -57,8 +57,9 @@ 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 = keyval[0]
|
||||
switch info.Codec {
|
||||
case "MPEG4-GENERIC":
|
||||
info.Codec = "AAC"
|
||||
}
|
||||
|
Reference in New Issue
Block a user