From d5f2d0712d6627920d835a6e464dd5c0fe3c6bfd Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 4 Apr 2019 19:03:37 +0200 Subject: [PATCH] bmv3: fix colour update skip decoding --- nihav-game/src/codecs/bmv3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-game/src/codecs/bmv3.rs b/nihav-game/src/codecs/bmv3.rs index e6c3334..66afc4f 100644 --- a/nihav-game/src/codecs/bmv3.rs +++ b/nihav-game/src/codecs/bmv3.rs @@ -124,7 +124,7 @@ impl BMV3VideoDecoder { let skip; if op < 0x90 { let op2 = br.read_u16le()?; - skip = ((op2 >> 12) as usize) | ((op << 4) as usize); + skip = ((op2 >> 12) as usize) | ((op as usize) << 4); len = (op2 & 0xFFF) as usize; } else { len = ((op & 7) + 1) as usize; -- 2.39.5