mirror of
https://github.com/aler9/gortsplib
synced 2025-09-26 19:21:20 +08:00
Fix typo when identifying KLV packets as SMPTE336M-encoded (#877)
This commit is contained in:
@@ -190,7 +190,7 @@ func Unmarshal(md *psdp.MediaDescription, payloadTypeStr string) (Format, error)
|
||||
|
||||
// other
|
||||
|
||||
case codec == "smtpe336m" && payloadType >= 96 && payloadType <= 127:
|
||||
case codec == "smpte336m" && payloadType >= 96 && payloadType <= 127:
|
||||
return &KLV{}
|
||||
|
||||
/*
|
||||
|
@@ -1193,12 +1193,12 @@ var casesFormat = []struct {
|
||||
"v=0\n" +
|
||||
"s=\n" +
|
||||
"m=application 0 RTP/AVP 97\n" +
|
||||
"a=rtpmap:97 smtpe336m/90000\n",
|
||||
"a=rtpmap:97 SMPTE336M/90000\n",
|
||||
&KLV{
|
||||
PayloadTyp: 97,
|
||||
},
|
||||
97,
|
||||
"smtpe336m/90000",
|
||||
"SMPTE336M/90000",
|
||||
nil,
|
||||
},
|
||||
{
|
||||
|
@@ -34,7 +34,7 @@ func (f *KLV) PayloadType() uint8 {
|
||||
|
||||
// RTPMap implements Format.
|
||||
func (f *KLV) RTPMap() string {
|
||||
return "smtpe336m/90000"
|
||||
return "SMPTE336M/90000"
|
||||
}
|
||||
|
||||
// FMTP implements Format.
|
||||
|
@@ -145,7 +145,7 @@ func FuzzRangeUnmarshal(f *testing.F) {
|
||||
f.Add(ca.vin[0])
|
||||
}
|
||||
|
||||
f.Add("smtpe=")
|
||||
f.Add("smpte=")
|
||||
f.Add("npt=")
|
||||
f.Add("clock=")
|
||||
|
||||
|
Reference in New Issue
Block a user