From: Kostya Shishkov Date: Thu, 1 Feb 2018 11:22:32 +0000 (+0100) Subject: blockdsp: fix copy-paste error X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=2bfdf3292154cddce4ac732c2761bca8ca63a45c;p=nihav.git blockdsp: fix copy-paste error --- diff --git a/src/codecs/blockdsp.rs b/src/codecs/blockdsp.rs index ed47284..3d39a9e 100644 --- a/src/codecs/blockdsp.rs +++ b/src/codecs/blockdsp.rs @@ -147,7 +147,7 @@ pub fn copy_blocks(dst: &mut NAVideoBuffer, src: &NAVideoBuffer, ebuf.resize((((pre + post) as usize) + bh) * ebuf_stride, 0); for comp in 0..3 { - let dstride = src.get_stride(comp); + let dstride = dst.get_stride(comp); let doff = dst.get_offset(comp); let mut ddta = dst.get_data_mut(); let mut dbuf: &mut [u8] = ddta.as_mut_slice(); @@ -170,7 +170,7 @@ pub fn copy_blocks(dst: &mut NAVideoBuffer, src: &NAVideoBuffer, let soff = src.get_offset(comp); let sdta = src.get_data(); let sbuf: &[u8] = sdta.as_slice(); - let dstride = src.get_stride(comp); + let dstride = dst.get_stride(comp); let doff = dst.get_offset(comp); let mut ddta = dst.get_data_mut(); let mut dbuf: &mut [u8] = ddta.as_mut_slice();