From 8865cd08467b920c58f5bf7664b0531214404f31 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 18 Feb 2019 13:52:24 +0100 Subject: [PATCH] indeo3: fix fill_block8x8 --- nihav-indeo/src/codecs/indeo3.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nihav-indeo/src/codecs/indeo3.rs b/nihav-indeo/src/codecs/indeo3.rs index f4b2d3c..a30cd1f 100644 --- a/nihav-indeo/src/codecs/indeo3.rs +++ b/nihav-indeo/src/codecs/indeo3.rs @@ -237,6 +237,9 @@ fn fill_block8x8(bufs: &mut Buffers, doff: usize, stride: usize, h: usize, topli } let start = if !topline { 0 } else { 1 }; + if topline { + didx += stride; + } if bufs.fbuf { for _ in start..h { for i in 0..8 { bufs.buf1[didx + i] = buf[i]; } -- 2.39.5