From: Kostya Shishkov Date: Mon, 18 Feb 2019 12:52:24 +0000 (+0100) Subject: indeo3: fix fill_block8x8 X-Git-Url: https://git.nihav.org/?p=nihav.git;a=commitdiff_plain;h=8865cd08467b920c58f5bf7664b0531214404f31 indeo3: fix fill_block8x8 --- 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]; }