From: Kostya Shishkov Date: Tue, 10 Aug 2021 10:51:04 +0000 (+0200) Subject: smc: ignore first byte X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=6617c7576ec351996033c436c15f64ae2086ff1e;p=nihav.git smc: ignore first byte Its value can be anything. --- diff --git a/nihav-qt/src/codecs/smc.rs b/nihav-qt/src/codecs/smc.rs index 16f13b4..401b3c4 100644 --- a/nihav-qt/src/codecs/smc.rs +++ b/nihav-qt/src/codecs/smc.rs @@ -62,8 +62,7 @@ impl NADecoder for SmcDecoder { let mut mr = MemoryReader::new_read(src.as_slice()); let mut br = ByteReader::new(&mut mr); - let id = br.read_byte()?; - validate!(id == 0x80); + let _flags = br.read_byte()?; let length = br.read_u24be()? as usize; validate!(length == src.len());