Fix typo when identifying KLV packets as SMPTE336M-encoded (#877)

This commit is contained in:
James Ford
2025-09-05 13:32:28 -04:00
committed by GitHub
parent 6add5809c2
commit a8513af402
4 changed files with 5 additions and 5 deletions

View File

@@ -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{}
/* /*

View File

@@ -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,
}, },
{ {

View File

@@ -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.

View File

@@ -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=")