diff --git a/libsrt/src/packets/recvbound.rs b/libsrt/src/packets/recvbound.rs index b1ec4c0..d60c47e 100644 --- a/libsrt/src/packets/recvbound.rs +++ b/libsrt/src/packets/recvbound.rs @@ -58,7 +58,7 @@ impl SRTPacket for EncryptedDataPacket { if bytes[0] != 0x08 { return Err(PacketParseError::IncorrectPacketType) } - + let data_len = u64::from_le_bytes(bytes[1..9].try_into().unwrap()) as usize; if bytes.len() < 9 + data_len {