From: Kostya Shishkov Date: Fri, 16 Jun 2023 16:08:04 +0000 (+0200) Subject: core/scale: fix typos in scaling loop X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=99ddf2c50981ad72bc853f01be9939f3ff3d1dad;p=nihav.git core/scale: fix typos in scaling loop --- diff --git a/nihav-core/src/scale/scale/mod.rs b/nihav-core/src/scale/scale/mod.rs index 0a62e0f..ae39ef3 100644 --- a/nihav-core/src/scale/scale/mod.rs +++ b/nihav-core/src/scale/scale/mod.rs @@ -294,11 +294,11 @@ macro_rules! scale_loop { } } let resizer = &mut $scalers[idx].1; - for (dline, sline) in $tbuf.chunks_mut(tstride).zip(src[ioff..].chunks(istride)).take(dh) { + for (dline, sline) in $tbuf.chunks_mut(tstride).zip(src[ioff..].chunks(istride)).take(sh) { resizer.resize_line(sline, sw, 1, dline, dw, 1); } } else { - for (dline, sline) in $tbuf.chunks_mut(tstride).zip(src[ioff..].chunks(istride)).take(dh) { + for (dline, sline) in $tbuf.chunks_mut(tstride).zip(src[ioff..].chunks(istride)).take(sh) { dline[..dw].copy_from_slice(&sline[..sw]); } }