From 2bfdf3292154cddce4ac732c2761bca8ca63a45c Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 1 Feb 2018 12:22:32 +0100 Subject: [PATCH] blockdsp: fix copy-paste error --- src/codecs/blockdsp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5