From 64bb5e7798a3067eef509bd162d6200a74ace1a8 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 13 Dec 2019 11:40:53 +0100 Subject: [PATCH] indeo/ivi: fix motion compensation routine --- nihav-indeo/src/codecs/ividsp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nihav-indeo/src/codecs/ividsp.rs b/nihav-indeo/src/codecs/ividsp.rs index 0c5274d..b20e155 100644 --- a/nihav-indeo/src/codecs/ividsp.rs +++ b/nihav-indeo/src/codecs/ividsp.rs @@ -381,9 +381,9 @@ pub fn ivi_mc_put(dst: &mut [i16], dstride: usize, src: &[i16], sstride: usize, let mut sptr0 = src.as_ptr(); let mut sptr1 = sptr0.add(sstride); let mut dptr = dst.as_mut_ptr(); - let mut la = *sptr0; - let mut lb = *sptr1; for _ in 0..h { + let mut la = *sptr0; + let mut lb = *sptr1; for x in 0..w { let a = *sptr0.add(x + 1); let b = *sptr1.add(x + 1); -- 2.39.5