Skip to content

Commit

Permalink
fn padding: Make left arg, dst_tl var non-mut as they're neve…
Browse files Browse the repository at this point in the history
…r mutated.
  • Loading branch information
kkysen committed Jul 25, 2023
1 parent 83ba721 commit 43ffb64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/looprestoration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ pub(crate) unsafe fn padding<BD: BitDepth>(
dst: &mut [BD::Pixel; 70 /*(64 + 3 + 3)*/ * REST_UNIT_STRIDE],
p: *const BD::Pixel,
stride: usize,
mut left: *const [BD::Pixel; 4],
left: *const [BD::Pixel; 4],
lpf: *const BD::Pixel,
unit_w: usize,
stripe_h: usize,
Expand Down Expand Up @@ -196,7 +196,7 @@ pub(crate) unsafe fn padding<BD: BitDepth>(
}
}

let mut dst_tl = &mut dst_l[3 * REST_UNIT_STRIDE..];
let dst_tl = &mut dst_l[3 * REST_UNIT_STRIDE..];
if have_bottom {
// Copy next loop filtered rows
let lpf = std::slice::from_raw_parts(lpf, 7 * stride + unit_w);
Expand Down

0 comments on commit 43ffb64

Please sign in to comment.