[bugfix]修复relay rtsp 2 rmp 无音频问题

pull/204/head
Neil 3 years ago
parent 057426eff1
commit fd0ce49c56

@ -115,7 +115,7 @@ func ParseSdp2LogicContext(b []byte) (LogicContext, error) {
ret.audioAControl = md.AControl.Value ret.audioAControl = md.AControl.Value
ret.audioPayloadTypeOrigin = md.ARtpMap.PayloadType ret.audioPayloadTypeOrigin = md.ARtpMap.PayloadType
if md.ARtpMap.EncodingName == ARtpMapEncodingNameAac { if strings.EqualFold(md.ARtpMap.EncodingName, ARtpMapEncodingNameAac) {
ret.audioPayloadTypeBase = base.AvPacketPtAac ret.audioPayloadTypeBase = base.AvPacketPtAac
if md.AFmtPBase != nil { if md.AFmtPBase != nil {
ret.Asc, err = ParseAsc(md.AFmtPBase) ret.Asc, err = ParseAsc(md.AFmtPBase)

Loading…
Cancel
Save