From 618ef4a7e2c046d5d530610c0cc9d52a9bc8d895 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 21 Jan 2020 15:42:14 +0100 Subject: [PATCH 1/1] vp3: fix fourmv address for VP4 --- nihav-duck/src/codecs/vp3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-duck/src/codecs/vp3.rs b/nihav-duck/src/codecs/vp3.rs index 08b1e70..7efb403 100644 --- a/nihav-duck/src/codecs/vp3.rs +++ b/nihav-duck/src/codecs/vp3.rs @@ -1131,7 +1131,7 @@ impl VP34Decoder { last2_mv = last_mv; let saddr = (self.blk_addr[cur_blk] >> 2).min(self.blk_addr[cur_blk + 1] >> 2).min(self.blk_addr[cur_blk + 2] >> 2).min(self.blk_addr[cur_blk + 3] >> 2); for i in 0..4 { - let blk = &mut self.blocks[saddr + (i & 1) + (i >> 1) * self.mb_w]; + let blk = &mut self.blocks[saddr + (i & 1) + (i >> 1) * self.mb_w * 2]; blk.mv.x = br.read_cb(x_cb)? as i16; if x_sign { blk.mv.x = -blk.mv.x; -- 2.39.5