From: Kostya Shishkov Date: Thu, 4 Apr 2019 17:03:37 +0000 (+0200) Subject: bmv3: fix colour update skip decoding X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=d5f2d0712d6627920d835a6e464dd5c0fe3c6bfd;p=nihav.git bmv3: fix colour update skip decoding --- 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;