mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 03:25:52 +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
|
// other
|
||||||
|
|
||||||
case codec == "smtpe336m" && payloadType >= 96 && payloadType <= 127:
|
case codec == "smpte336m" && payloadType >= 96 && payloadType <= 127:
|
||||||
return &KLV{}
|
return &KLV{}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -1193,12 +1193,12 @@ var casesFormat = []struct {
|
|||||||
"v=0\n" +
|
"v=0\n" +
|
||||||
"s=\n" +
|
"s=\n" +
|
||||||
"m=application 0 RTP/AVP 97\n" +
|
"m=application 0 RTP/AVP 97\n" +
|
||||||
"a=rtpmap:97 smtpe336m/90000\n",
|
"a=rtpmap:97 SMPTE336M/90000\n",
|
||||||
&KLV{
|
&KLV{
|
||||||
PayloadTyp: 97,
|
PayloadTyp: 97,
|
||||||
},
|
},
|
||||||
97,
|
97,
|
||||||
"smtpe336m/90000",
|
"SMPTE336M/90000",
|
||||||
nil,
|
nil,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@@ -34,7 +34,7 @@ func (f *KLV) PayloadType() uint8 {
|
|||||||
|
|
||||||
// RTPMap implements Format.
|
// RTPMap implements Format.
|
||||||
func (f *KLV) RTPMap() string {
|
func (f *KLV) RTPMap() string {
|
||||||
return "smtpe336m/90000"
|
return "SMPTE336M/90000"
|
||||||
}
|
}
|
||||||
|
|
||||||
// FMTP implements Format.
|
// FMTP implements Format.
|
||||||
|
@@ -145,7 +145,7 @@ func FuzzRangeUnmarshal(f *testing.F) {
|
|||||||
f.Add(ca.vin[0])
|
f.Add(ca.vin[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
f.Add("smtpe=")
|
f.Add("smpte=")
|
||||||
f.Add("npt=")
|
f.Add("npt=")
|
||||||
f.Add("clock=")
|
f.Add("clock=")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user