From db827ccd19c50546c8370ee8f3340709ffc99ee1 Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Sat, 28 Jan 2023 15:04:49 -0500 Subject: [PATCH] work on packet processing [changes by tm85] --- libsrt/src/packets/recvbound.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {