From 6617c7576ec351996033c436c15f64ae2086ff1e Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 10 Aug 2021 12:51:04 +0200 Subject: [PATCH] smc: ignore first byte Its value can be anything. --- nihav-qt/src/codecs/smc.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()); -- 2.39.5