Remove 90000 from stream info json

This commit is contained in:
Alexey Khit
2023-03-01 17:19:22 +03:00
parent 5c084c9989
commit 402df50b65
+4 -1
View File
@@ -139,7 +139,10 @@ type Codec struct {
} }
func (c *Codec) String() string { func (c *Codec) String() string {
s := fmt.Sprintf("%d %s/%d", c.PayloadType, c.Name, c.ClockRate) s := fmt.Sprintf("%d %s", c.PayloadType, c.Name)
if c.ClockRate != 90000 {
s = fmt.Sprintf("%s/%d", s, c.ClockRate)
}
if c.Channels > 0 { if c.Channels > 0 {
s = fmt.Sprintf("%s/%d", s, c.Channels) s = fmt.Sprintf("%s/%d", s, c.Channels)
} }