Header returns the Header associated with this packet.
()
| 185 | |
| 186 | // Header returns the Header associated with this packet. |
| 187 | func (s *SourceDescription) Header() Header { |
| 188 | return Header{ |
| 189 | Count: uint8(len(s.Chunks)), //nolint:gosec // G115 |
| 190 | Type: TypeSourceDescription, |
| 191 | Length: uint16((s.MarshalSize() / 4) - 1), //nolint:gosec // G115 |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | // A SourceDescriptionChunk contains items describing a single RTP source. |
| 196 | type SourceDescriptionChunk struct { |