From f3a865f815d62227bb71ac955735a391e42bbc6a Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Tue, 15 Jul 2025 21:30:01 +0200 Subject: [PATCH] in comments, use specification titles instead of URLs (#830) --- README.md | 2 +- pkg/format/ac3.go | 2 +- pkg/format/av1.go | 2 +- pkg/format/g711.go | 2 +- pkg/format/g722.go | 2 +- pkg/format/g726.go | 2 +- pkg/format/h264.go | 2 +- pkg/format/h265.go | 2 +- pkg/format/klv.go | 2 +- pkg/format/lpcm.go | 4 ++-- pkg/format/mjpeg.go | 2 +- pkg/format/mpeg1_audio.go | 2 +- pkg/format/mpeg1_video.go | 2 +- pkg/format/mpeg4_audio.go | 4 ++-- pkg/format/mpeg4_video.go | 2 +- pkg/format/mpegts.go | 2 +- pkg/format/opus.go | 4 ++-- pkg/format/rtpac3/decoder.go | 2 +- pkg/format/rtpac3/encoder.go | 2 +- pkg/format/rtpav1/decoder.go | 2 +- pkg/format/rtpav1/encoder.go | 2 +- pkg/format/rtph264/decoder.go | 2 +- pkg/format/rtph264/encoder.go | 2 +- pkg/format/rtph265/decoder.go | 2 +- pkg/format/rtph265/encoder.go | 2 +- pkg/format/rtpklv/decoder.go | 2 +- pkg/format/rtpklv/encoder.go | 2 +- pkg/format/rtplpcm/decoder.go | 2 +- pkg/format/rtplpcm/encoder.go | 2 +- pkg/format/rtpmjpeg/decoder.go | 2 +- pkg/format/rtpmjpeg/encoder.go | 2 +- pkg/format/rtpmpeg1audio/decoder.go | 2 +- pkg/format/rtpmpeg1audio/encoder.go | 2 +- pkg/format/rtpmpeg1video/decoder.go | 2 +- pkg/format/rtpmpeg1video/encoder.go | 2 +- pkg/format/rtpmpeg4audio/decoder.go | 4 ++-- pkg/format/rtpmpeg4audio/encoder.go | 6 +++--- pkg/format/rtpmpeg4video/decoder.go | 2 +- pkg/format/rtpmpeg4video/encoder.go | 2 +- pkg/format/rtpsimpleaudio/decoder.go | 2 +- pkg/format/rtpsimpleaudio/encoder.go | 2 +- pkg/format/rtpvp8/decoder.go | 2 +- pkg/format/rtpvp8/encoder.go | 2 +- pkg/format/rtpvp9/decoder.go | 2 +- pkg/format/rtpvp9/encoder.go | 2 +- pkg/format/speex.go | 2 +- pkg/format/vorbis.go | 2 +- pkg/format/vp8.go | 2 +- pkg/format/vp9.go | 2 +- 49 files changed, 55 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index 823939d7..9edcf47d 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ In RTSP, media streams are transmitted by using RTP packets, which are encoded i |[RFC4567, Key Management Extensions for Session Description Protocol (SDP) and Real Time Streaming Protocol (RTSP)](https://datatracker.ietf.org/doc/html/rfc4567)|secure variants| |[RFC3830, MIKEY: Multimedia Internet KEYing](https://datatracker.ietf.org/doc/html/rfc3830)|secure variants| |[RTP Payload Format For AV1 (v1.0)](https://aomediacodec.github.io/av1-rtp-spec/)|payload formats / AV1| -|[RTP Payload Format for VP9 Video](https://datatracker.ietf.org/doc/html/draft-ietf-payload-vp9-16)|payload formats / VP9| +|[RFC9628, RTP Payload Format for VP9 Video](https://datatracker.ietf.org/doc/html/rfc9628)|payload formats / VP9| |[RFC7741, RTP Payload Format for VP8 Video](https://datatracker.ietf.org/doc/html/rfc7741)|payload formats / VP8| |[RFC7798, RTP Payload Format for High Efficiency Video Coding (HEVC)](https://datatracker.ietf.org/doc/html/rfc7798)|payload formats / H265| |[RFC6184, RTP Payload Format for H.264 Video](https://datatracker.ietf.org/doc/html/rfc6184)|payload formats / H264| diff --git a/pkg/format/ac3.go b/pkg/format/ac3.go index 34c2811a..512bdee1 100644 --- a/pkg/format/ac3.go +++ b/pkg/format/ac3.go @@ -11,7 +11,7 @@ import ( ) // AC3 is the RTP format for the AC-3 codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc4184 +// Specification: RFC4184 type AC3 struct { PayloadTyp uint8 SampleRate int diff --git a/pkg/format/av1.go b/pkg/format/av1.go index 7b311b1e..d1d8eac6 100644 --- a/pkg/format/av1.go +++ b/pkg/format/av1.go @@ -10,7 +10,7 @@ import ( ) // AV1 is the RTP format for the AV1 codec. -// Specification: https://aomediacodec.github.io/av1-rtp-spec/ +// Specification: RTP Payload Format For AV1 (v1.0) type AV1 struct { PayloadTyp uint8 LevelIdx *int diff --git a/pkg/format/g711.go b/pkg/format/g711.go index f1baa81c..ab7bec4d 100644 --- a/pkg/format/g711.go +++ b/pkg/format/g711.go @@ -11,7 +11,7 @@ import ( ) // G711 is the RTP format for the G711 codec, encoded with mu-law or A-law. -// Specification: https://datatracker.ietf.org/doc/html/rfc3551 +// Specification: RFC3551 type G711 struct { PayloadTyp uint8 MULaw bool diff --git a/pkg/format/g722.go b/pkg/format/g722.go index 86d7d996..4b8e65ab 100644 --- a/pkg/format/g722.go +++ b/pkg/format/g722.go @@ -7,7 +7,7 @@ import ( ) // G722 is the RTP format for the G722 codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc3551 +// Specification: RFC3551 type G722 struct { // in Go, empty structs share the same pointer, // therefore they cannot be used as map keys diff --git a/pkg/format/g726.go b/pkg/format/g726.go index 1c41725a..eba618fe 100644 --- a/pkg/format/g726.go +++ b/pkg/format/g726.go @@ -8,7 +8,7 @@ import ( ) // G726 is the RTP format for the G726 codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc3551 +// Specification: RFC3551 type G726 struct { PayloadTyp uint8 BitRate int diff --git a/pkg/format/h264.go b/pkg/format/h264.go index 87115b9c..ed41799f 100644 --- a/pkg/format/h264.go +++ b/pkg/format/h264.go @@ -16,7 +16,7 @@ import ( ) // H264 is the RTP format for the H264 codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc6184 +// Specification: RFC6184 type H264 struct { PayloadTyp uint8 SPS []byte diff --git a/pkg/format/h265.go b/pkg/format/h265.go index 39931903..f70eca61 100644 --- a/pkg/format/h265.go +++ b/pkg/format/h265.go @@ -14,7 +14,7 @@ import ( ) // H265 is the RTP format for the H265 codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc7798 +// Specification: RFC7798 type H265 struct { PayloadTyp uint8 VPS []byte diff --git a/pkg/format/klv.go b/pkg/format/klv.go index 5e4ac8e0..2f08b704 100644 --- a/pkg/format/klv.go +++ b/pkg/format/klv.go @@ -7,7 +7,7 @@ import ( ) // KLV is the RTP format for KLV data. -// Specification: https://datatracker.ietf.org/doc/html/rfc6597 +// Specification: RFC6597 type KLV struct { PayloadTyp uint8 } diff --git a/pkg/format/lpcm.go b/pkg/format/lpcm.go index a0271d19..f0fa05f4 100644 --- a/pkg/format/lpcm.go +++ b/pkg/format/lpcm.go @@ -11,8 +11,8 @@ import ( ) // LPCM is the RTP format for the LPCM codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc3190 -// Specification: https://datatracker.ietf.org/doc/html/rfc3551 +// Specification: RFC3190 +// Specification: RFC3551 type LPCM struct { PayloadTyp uint8 BitDepth int diff --git a/pkg/format/mjpeg.go b/pkg/format/mjpeg.go index 21275c69..6c388ffb 100644 --- a/pkg/format/mjpeg.go +++ b/pkg/format/mjpeg.go @@ -7,7 +7,7 @@ import ( ) // MJPEG is the RTP format for the Motion-JPEG codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc2435 +// Specification: RFC2435 type MJPEG struct { // in Go, empty structs share the same pointer, // therefore they cannot be used as map keys diff --git a/pkg/format/mpeg1_audio.go b/pkg/format/mpeg1_audio.go index 603cde9e..9e52c859 100644 --- a/pkg/format/mpeg1_audio.go +++ b/pkg/format/mpeg1_audio.go @@ -7,7 +7,7 @@ import ( ) // MPEG1Audio is the RTP format for a MPEG-1/2 Audio codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc2250 +// Specification: RFC2250 type MPEG1Audio struct { // in Go, empty structs share the same pointer, // therefore they cannot be used as map keys diff --git a/pkg/format/mpeg1_video.go b/pkg/format/mpeg1_video.go index 93d4d158..b86073b6 100644 --- a/pkg/format/mpeg1_video.go +++ b/pkg/format/mpeg1_video.go @@ -7,7 +7,7 @@ import ( ) // MPEG1Video is the RTP format for a MPEG-1/2 Video codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc2250 +// Specification: RFC2250 type MPEG1Video struct { // in Go, empty structs share the same pointer, // therefore they cannot be used as map keys diff --git a/pkg/format/mpeg4_audio.go b/pkg/format/mpeg4_audio.go index 91c8b730..c2e9203d 100644 --- a/pkg/format/mpeg4_audio.go +++ b/pkg/format/mpeg4_audio.go @@ -13,8 +13,8 @@ import ( ) // MPEG4Audio is the RTP format for a MPEG-4 Audio codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc3640 -// Specification: https://datatracker.ietf.org/doc/html/rfc6416#section-7.3 +// Specification: RFC3640 +// Specification: RFC6416, section 7.3 type MPEG4Audio struct { // payload type of packets. PayloadTyp uint8 diff --git a/pkg/format/mpeg4_video.go b/pkg/format/mpeg4_video.go index 8c09bf18..54462a67 100644 --- a/pkg/format/mpeg4_video.go +++ b/pkg/format/mpeg4_video.go @@ -14,7 +14,7 @@ import ( ) // MPEG4Video is the RTP format for a MPEG-4 Video codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc6416#section-7.1 +// Specification: RFC6416, section 7.1 type MPEG4Video struct { PayloadTyp uint8 ProfileLevelID int diff --git a/pkg/format/mpegts.go b/pkg/format/mpegts.go index 3baf5703..e56eccb3 100644 --- a/pkg/format/mpegts.go +++ b/pkg/format/mpegts.go @@ -5,7 +5,7 @@ import ( ) // MPEGTS is the RTP format for MPEG-TS. -// Specification: https://datatracker.ietf.org/doc/html/rfc2250 +// Specification: RFC2250 type MPEGTS struct { // in Go, empty structs share the same pointer, // therefore they cannot be used as map keys diff --git a/pkg/format/opus.go b/pkg/format/opus.go index 30a3a36a..b3757439 100644 --- a/pkg/format/opus.go +++ b/pkg/format/opus.go @@ -11,8 +11,8 @@ import ( ) // Opus is the RTP format for the Opus codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc7587 -// Specification: https://webrtc-review.googlesource.com/c/src/+/129768 +// Specification: RFC7587 +// Specification: Multiopus in libwebrtc type Opus struct { PayloadTyp uint8 ChannelCount int diff --git a/pkg/format/rtpac3/decoder.go b/pkg/format/rtpac3/decoder.go index 931ff162..e7119b14 100644 --- a/pkg/format/rtpac3/decoder.go +++ b/pkg/format/rtpac3/decoder.go @@ -29,7 +29,7 @@ func joinFragments(fragments [][]byte, size int) []byte { } // Decoder is a AC-3 decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc4184 +// Specification: RFC4184 type Decoder struct { firstPacketReceived bool fragments [][]byte diff --git a/pkg/format/rtpac3/encoder.go b/pkg/format/rtpac3/encoder.go index c6cf2768..f3f56c3f 100644 --- a/pkg/format/rtpac3/encoder.go +++ b/pkg/format/rtpac3/encoder.go @@ -31,7 +31,7 @@ func packetCount(avail, le int) int { } // Encoder is a AC-3 encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc4184 +// Specification: RFC4184 type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/rtpav1/decoder.go b/pkg/format/rtpav1/decoder.go index f5dd9abc..b147630c 100644 --- a/pkg/format/rtpav1/decoder.go +++ b/pkg/format/rtpav1/decoder.go @@ -36,7 +36,7 @@ func tuSize(tu [][]byte) int { } // Decoder is a RTP/AV1 decoder. -// Specification: https://aomediacodec.github.io/av1-rtp-spec/ +// Specification: RTP Payload Format For AV1 (v1.0) type Decoder struct { firstPacketReceived bool fragments [][]byte diff --git a/pkg/format/rtpav1/encoder.go b/pkg/format/rtpav1/encoder.go index 6d32c7cb..790c41c9 100644 --- a/pkg/format/rtpav1/encoder.go +++ b/pkg/format/rtpav1/encoder.go @@ -22,7 +22,7 @@ func randUint32() (uint32, error) { } // Encoder is a RTP/AV1 encoder. -// Specification: https://aomediacodec.github.io/av1-rtp-spec/ +// Specification: RTP Payload Format For AV1 (v1.0) type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/rtph264/decoder.go b/pkg/format/rtph264/decoder.go index 725ecd5a..b119cf05 100644 --- a/pkg/format/rtph264/decoder.go +++ b/pkg/format/rtph264/decoder.go @@ -47,7 +47,7 @@ func auSize(au [][]byte) int { } // Decoder is a RTP/H264 decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc6184 +// Specification: RFC6184 type Decoder struct { // indicates the packetization mode. PacketizationMode int diff --git a/pkg/format/rtph264/encoder.go b/pkg/format/rtph264/encoder.go index 72714935..524a4f79 100644 --- a/pkg/format/rtph264/encoder.go +++ b/pkg/format/rtph264/encoder.go @@ -48,7 +48,7 @@ func packetCount(avail, le int) int { } // Encoder is a RTP/H264 encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc6184 +// Specification: RFC6184 type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/rtph265/decoder.go b/pkg/format/rtph265/decoder.go index 837af18e..10012245 100644 --- a/pkg/format/rtph265/decoder.go +++ b/pkg/format/rtph265/decoder.go @@ -37,7 +37,7 @@ func auSize(au [][]byte) int { } // Decoder is a RTP/H265 decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc7798 +// Specification: RFC7798 type Decoder struct { // indicates that NALUs have an additional field that specifies the decoding order. MaxDONDiff int diff --git a/pkg/format/rtph265/encoder.go b/pkg/format/rtph265/encoder.go index a3e288ca..01fad49b 100644 --- a/pkg/format/rtph265/encoder.go +++ b/pkg/format/rtph265/encoder.go @@ -30,7 +30,7 @@ func packetCount(avail, le int) int { } // Encoder is a RTP/H265 encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc7798 +// Specification: RFC7798 type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/rtpklv/decoder.go b/pkg/format/rtpklv/decoder.go index 01538789..90c99bed 100644 --- a/pkg/format/rtpklv/decoder.go +++ b/pkg/format/rtpklv/decoder.go @@ -18,7 +18,7 @@ var ErrNonStartingPacketAndNoPrevious = errors.New( "received a non-starting fragment without any previous starting fragment") // Decoder is a RTP/KLV decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc6597 +// Specification: RFC6597 type Decoder struct { // buffer for accumulating KLV unit data across multiple packets buffer []byte diff --git a/pkg/format/rtpklv/encoder.go b/pkg/format/rtpklv/encoder.go index d68f43f3..1da45f83 100644 --- a/pkg/format/rtpklv/encoder.go +++ b/pkg/format/rtpklv/encoder.go @@ -21,7 +21,7 @@ func randUint32() (uint32, error) { } // Encoder is a RTP/KLV encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc6597 +// Specification: RFC6597 type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/rtplpcm/decoder.go b/pkg/format/rtplpcm/decoder.go index 11a2aeed..9a86dfe0 100644 --- a/pkg/format/rtplpcm/decoder.go +++ b/pkg/format/rtplpcm/decoder.go @@ -7,7 +7,7 @@ import ( ) // Decoder is a RTP/LPCM decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc3190 +// Specification: RFC3190 type Decoder struct { BitDepth int ChannelCount int diff --git a/pkg/format/rtplpcm/encoder.go b/pkg/format/rtplpcm/encoder.go index 00b40ad3..3055310e 100644 --- a/pkg/format/rtplpcm/encoder.go +++ b/pkg/format/rtplpcm/encoder.go @@ -22,7 +22,7 @@ func randUint32() (uint32, error) { } // Encoder is a RTP/LPCM encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc3190 +// Specification: RFC3190 type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/rtpmjpeg/decoder.go b/pkg/format/rtpmjpeg/decoder.go index 366c9bec..fe8a69cf 100644 --- a/pkg/format/rtpmjpeg/decoder.go +++ b/pkg/format/rtpmjpeg/decoder.go @@ -160,7 +160,7 @@ func joinFragments(fragments [][]byte, size int) []byte { } // Decoder is a RTP/M-JPEG decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc2435 +// Specification: RFC2435 type Decoder struct { firstPacketReceived bool fragments [][]byte diff --git a/pkg/format/rtpmjpeg/encoder.go b/pkg/format/rtpmjpeg/encoder.go index 5bf1d34c..f2a730c5 100644 --- a/pkg/format/rtpmjpeg/encoder.go +++ b/pkg/format/rtpmjpeg/encoder.go @@ -25,7 +25,7 @@ func randUint32() (uint32, error) { } // Encoder is a RTP/M-JPEG encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc2435 +// Specification: RFC2435 type Encoder struct { // SSRC of packets (optional). // It defaults to a random value. diff --git a/pkg/format/rtpmpeg1audio/decoder.go b/pkg/format/rtpmpeg1audio/decoder.go index 41c9202f..854f7650 100644 --- a/pkg/format/rtpmpeg1audio/decoder.go +++ b/pkg/format/rtpmpeg1audio/decoder.go @@ -28,7 +28,7 @@ func joinFragments(fragments [][]byte, size int) []byte { } // Decoder is a RTP/MPEG-1/2 Audio decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc2250 +// Specification: RFC2250 type Decoder struct { firstPacketReceived bool fragments [][]byte diff --git a/pkg/format/rtpmpeg1audio/encoder.go b/pkg/format/rtpmpeg1audio/encoder.go index edf9e8a2..d09097e9 100644 --- a/pkg/format/rtpmpeg1audio/encoder.go +++ b/pkg/format/rtpmpeg1audio/encoder.go @@ -38,7 +38,7 @@ func packetCount(avail, le int) int { } // Encoder is a RTP/MPEG-1/2 Audio encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc2250 +// Specification: RFC2250 type Encoder struct { // SSRC of packets (optional). // It defaults to a random value. diff --git a/pkg/format/rtpmpeg1video/decoder.go b/pkg/format/rtpmpeg1video/decoder.go index 31fcb697..a830cef8 100644 --- a/pkg/format/rtpmpeg1video/decoder.go +++ b/pkg/format/rtpmpeg1video/decoder.go @@ -31,7 +31,7 @@ func joinFragments(fragments [][]byte, size int) []byte { } // Decoder is a RTP/MPEG-1/2 Video decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc2250 +// Specification: RFC2250 type Decoder struct { fragments [][]byte fragmentsSize int diff --git a/pkg/format/rtpmpeg1video/encoder.go b/pkg/format/rtpmpeg1video/encoder.go index b6e1a98b..8269f4ee 100644 --- a/pkg/format/rtpmpeg1video/encoder.go +++ b/pkg/format/rtpmpeg1video/encoder.go @@ -38,7 +38,7 @@ func packetCount(avail, le int) int { } // Encoder is a RTP/MPEG-1/2 Video encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc2250 +// Specification: RFC2250 type Encoder struct { // SSRC of packets (optional). // It defaults to a random value. diff --git a/pkg/format/rtpmpeg4audio/decoder.go b/pkg/format/rtpmpeg4audio/decoder.go index a87429ec..4681fd82 100644 --- a/pkg/format/rtpmpeg4audio/decoder.go +++ b/pkg/format/rtpmpeg4audio/decoder.go @@ -19,8 +19,8 @@ func joinFragments(fragments [][]byte, size int) []byte { } // Decoder is a RTP/MPEG-4 Audio decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc3640 -// Specification: https://datatracker.ietf.org/doc/html/rfc6416#section-7.3 +// Specification: RFC3640 +// Specification: RFC6416, section 7.3 type Decoder struct { // use RFC6416 (LATM) instead of RFC3640 (generic). LATM bool diff --git a/pkg/format/rtpmpeg4audio/encoder.go b/pkg/format/rtpmpeg4audio/encoder.go index 9571ad1f..9259aa38 100644 --- a/pkg/format/rtpmpeg4audio/encoder.go +++ b/pkg/format/rtpmpeg4audio/encoder.go @@ -21,8 +21,8 @@ func randUint32() (uint32, error) { } // Encoder is a RTP/MPEG-4 audio encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc3640 -// Specification: https://datatracker.ietf.org/doc/html/rfc6416#section-7.3 +// Specification: RFC3640 +// Specification: RFC6416, section 7.3 type Encoder struct { // payload type of packets. PayloadType uint8 @@ -79,7 +79,7 @@ func (e *Encoder) Init() error { return nil } -// Encode encodes AUs into RTP packets. +// Encode encodes AUs (non-LATM) or AudioMuxElements (LATM) into RTP packets. func (e *Encoder) Encode(aus [][]byte) ([]*rtp.Packet, error) { if !e.LATM { return e.encodeGeneric(aus) diff --git a/pkg/format/rtpmpeg4video/decoder.go b/pkg/format/rtpmpeg4video/decoder.go index b3a56954..93630450 100644 --- a/pkg/format/rtpmpeg4video/decoder.go +++ b/pkg/format/rtpmpeg4video/decoder.go @@ -22,7 +22,7 @@ func joinFragments(fragments [][]byte, size int) []byte { } // Decoder is a RTP/MPEG-4 Video decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc6416 +// Specification: RFC6416 type Decoder struct { fragments [][]byte fragmentsSize int diff --git a/pkg/format/rtpmpeg4video/encoder.go b/pkg/format/rtpmpeg4video/encoder.go index 7172c558..ba6e6596 100644 --- a/pkg/format/rtpmpeg4video/encoder.go +++ b/pkg/format/rtpmpeg4video/encoder.go @@ -29,7 +29,7 @@ func packetCount(avail, le int) int { } // Encoder is a RTP/MPEG-4 Video encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc6416 +// Specification: RFC6416 type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/rtpsimpleaudio/decoder.go b/pkg/format/rtpsimpleaudio/decoder.go index d53dcce5..89b46d26 100644 --- a/pkg/format/rtpsimpleaudio/decoder.go +++ b/pkg/format/rtpsimpleaudio/decoder.go @@ -4,7 +4,7 @@ import ( "github.com/pion/rtp" ) -// Decoder is a RTP/simple audio decoder. +// Decoder is a RTP decoder for audio codecs that fit in a single packet. type Decoder struct{} // Init initializes the decoder. diff --git a/pkg/format/rtpsimpleaudio/encoder.go b/pkg/format/rtpsimpleaudio/encoder.go index dbbd7461..3eb711d1 100644 --- a/pkg/format/rtpsimpleaudio/encoder.go +++ b/pkg/format/rtpsimpleaudio/encoder.go @@ -21,7 +21,7 @@ func randUint32() (uint32, error) { return uint32(b[0])<<24 | uint32(b[1])<<16 | uint32(b[2])<<8 | uint32(b[3]), nil } -// Encoder is a RTP/simple audio encoder. +// Encoder is a RTP encoder for audio codecs that fit in a single packet. type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/rtpvp8/decoder.go b/pkg/format/rtpvp8/decoder.go index df6da538..c43f0d0f 100644 --- a/pkg/format/rtpvp8/decoder.go +++ b/pkg/format/rtpvp8/decoder.go @@ -29,7 +29,7 @@ func joinFragments(fragments [][]byte, size int) []byte { } // Decoder is a RTP/VP8 decoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc7741 +// Specification: RFC7741 type Decoder struct { firstPacketReceived bool fragmentsSize int diff --git a/pkg/format/rtpvp8/encoder.go b/pkg/format/rtpvp8/encoder.go index 32ad6238..2ae164d2 100644 --- a/pkg/format/rtpvp8/encoder.go +++ b/pkg/format/rtpvp8/encoder.go @@ -23,7 +23,7 @@ func randUint32() (uint32, error) { } // Encoder is a RTP/VP8 encoder. -// Specification: https://datatracker.ietf.org/doc/html/rfc7741 +// Specification: RFC7741 type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/rtpvp9/decoder.go b/pkg/format/rtpvp9/decoder.go index 628d1758..868de62c 100644 --- a/pkg/format/rtpvp9/decoder.go +++ b/pkg/format/rtpvp9/decoder.go @@ -29,7 +29,7 @@ func joinFragments(fragments [][]byte, size int) []byte { } // Decoder is a RTP/VP9 decoder. -// Specification: https://datatracker.ietf.org/doc/html/draft-ietf-payload-vp9-16 +// Specification: RFC9628 type Decoder struct { firstPacketReceived bool fragmentsSize int diff --git a/pkg/format/rtpvp9/encoder.go b/pkg/format/rtpvp9/encoder.go index 0b78cbba..3226e523 100644 --- a/pkg/format/rtpvp9/encoder.go +++ b/pkg/format/rtpvp9/encoder.go @@ -23,7 +23,7 @@ func randUint32() (uint32, error) { } // Encoder is a RTP/VP9 encoder. -// Specification: https://datatracker.ietf.org/doc/html/draft-ietf-payload-vp9-16 +// Specification: RFC9628 type Encoder struct { // payload type of packets. PayloadType uint8 diff --git a/pkg/format/speex.go b/pkg/format/speex.go index ec1e9a24..c72d43ac 100644 --- a/pkg/format/speex.go +++ b/pkg/format/speex.go @@ -8,7 +8,7 @@ import ( ) // Speex is the RTP format for the Speex codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc5574 +// Specification: RFC5574 type Speex struct { PayloadTyp uint8 SampleRate int diff --git a/pkg/format/vorbis.go b/pkg/format/vorbis.go index d595960d..426b65a4 100644 --- a/pkg/format/vorbis.go +++ b/pkg/format/vorbis.go @@ -10,7 +10,7 @@ import ( ) // Vorbis is the RTP format for the Vorbis codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc5215 +// Specification: RFC5215 type Vorbis struct { PayloadTyp uint8 SampleRate int diff --git a/pkg/format/vp8.go b/pkg/format/vp8.go index cf933797..0240a773 100644 --- a/pkg/format/vp8.go +++ b/pkg/format/vp8.go @@ -10,7 +10,7 @@ import ( ) // VP8 is the RTP format for the VP8 codec. -// Specification: https://datatracker.ietf.org/doc/html/rfc7741 +// Specification: RFC7741 type VP8 struct { PayloadTyp uint8 MaxFR *int diff --git a/pkg/format/vp9.go b/pkg/format/vp9.go index bc42443d..34c8d7be 100644 --- a/pkg/format/vp9.go +++ b/pkg/format/vp9.go @@ -10,7 +10,7 @@ import ( ) // VP9 is the RTP format for the VP9 codec. -// Specification: https://datatracker.ietf.org/doc/html/draft-ietf-payload-vp9-16 +// Specification: RFC9628 type VP9 struct { PayloadTyp uint8 MaxFR *int