Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@onestream.live>2023-04-10 14:34:46 +0300
committerGuillaume Desmottes <guillaume.desmottes@onestream.live>2023-04-10 14:35:32 +0300
commit403004a85e7bdd7567d3381d592ef00e5914b6ed (patch)
tree93caa4153b50799f4e784beaad9b075330ae4648 /net/raptorq
parenta45581987189b45bc9d9d55750d0181806d6fe1b (diff)
fix typos
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1170>
Diffstat (limited to 'net/raptorq')
-rw-r--r--net/raptorq/src/raptorqdec/imp.rs10
-rw-r--r--net/raptorq/src/raptorqenc/imp.rs4
2 files changed, 7 insertions, 7 deletions
diff --git a/net/raptorq/src/raptorqdec/imp.rs b/net/raptorq/src/raptorqdec/imp.rs
index 2118f012b..aba109eb7 100644
--- a/net/raptorq/src/raptorqdec/imp.rs
+++ b/net/raptorq/src/raptorqdec/imp.rs
@@ -183,7 +183,7 @@ impl RaptorqDec {
}
// Build Source Block from received Data Packets and append
- // Repair Packets that have the same initial sequnce number
+ // Repair Packets that have the same initial sequence number
let mut source_block = Vec::with_capacity(
(data_packets_num + repair_packets_num)
.checked_mul(state.symbol_size)
@@ -301,7 +301,7 @@ impl RaptorqDec {
gst::debug!(
CAT,
imp: self,
- "Succesfully recovered packet: seqnum: {}, len: {}, ts: {}",
+ "Successfully recovered packet: seqnum: {}, len: {}, ts: {}",
rtpbuf.seq(),
rtpbuf.payload_size(),
rtpbuf.timestamp(),
@@ -337,7 +337,7 @@ impl RaptorqDec {
);
// Expand cyclic sequence numbers to u64, start from u16::MAX so we
- // never overflow substraction.
+ // never overflow subtraction.
let seq = rtpbuf.seq();
let prev_seq = state.extended_media_seq.unwrap_or(65_535 + seq as u64);
@@ -448,7 +448,7 @@ impl RaptorqDec {
);
// Expand cyclic sequence numbers to u64, start from u16::MAX so we
- // never overflow substraction.
+ // never overflow subtraction.
let prev_seq = state.extended_repair_seq.unwrap_or(65_535 + i as u64);
let delta = gst_rtp::compare_seqnum(prev_seq as u16, i);
@@ -763,7 +763,7 @@ impl ElementImpl for RaptorqDec {
let sink_fec_caps = gst::Caps::builder("application/x-rtp")
.field("raptor-scheme-id", fecscheme::FEC_SCHEME_ID.to_string())
- // All fmtp paramters from SDP are string in caps, those are
+ // All fmtp parameters from SDP are string in caps, those are
// required parameters that cannot be expressed as string:
// .field("kmax", (string) [1, MAX_SOURCE_BLOCK_LEN])
// .field("t", (string) [1, MAX_ENCODING_SYMBOL_SIZE])
diff --git a/net/raptorq/src/raptorqenc/imp.rs b/net/raptorq/src/raptorqenc/imp.rs
index b453c3969..07264d7fe 100644
--- a/net/raptorq/src/raptorqenc/imp.rs
+++ b/net/raptorq/src/raptorqenc/imp.rs
@@ -161,7 +161,7 @@ impl RaptorqEnc {
let sbl = state.symbols_per_block;
- // Initial sequnce number in Repair Payload ID is a sequence number of
+ // Initial sequence number in Repair Payload ID is a sequence number of
// the first packet in the Source Block.
let seq = state.seqnums.first().cloned().unwrap();
@@ -568,7 +568,7 @@ impl RaptorqEnc {
// this is the number of repair symbols placed in each repair packet,
// it SHALL be the same for all repair packets in a block. This include
- // 1 byte of flow indication and 2 bytes of lenght indication as defined
+ // 1 byte of flow indication and 2 bytes of length indication as defined
// in RFC6881, section 8.2.4.
let symbols_per_packet = (mtu + 3 + symbol_size - 1) / symbol_size;
let symbols_per_block = symbols_per_packet * protected_packets_num;