work on packet processing [changes by tm85]
This commit is contained in:
parent
8ba56fb712
commit
db827ccd19
|
@ -58,7 +58,7 @@ impl SRTPacket for EncryptedDataPacket {
|
||||||
if bytes[0] != 0x08 {
|
if bytes[0] != 0x08 {
|
||||||
return Err(PacketParseError::IncorrectPacketType)
|
return Err(PacketParseError::IncorrectPacketType)
|
||||||
}
|
}
|
||||||
|
|
||||||
let data_len = u64::from_le_bytes(bytes[1..9].try_into().unwrap()) as usize;
|
let data_len = u64::from_le_bytes(bytes[1..9].try_into().unwrap()) as usize;
|
||||||
|
|
||||||
if bytes.len() < 9 + data_len {
|
if bytes.len() < 9 + data_len {
|
||||||
|
|
Loading…
Reference in New Issue