Skip to content

Commit

Permalink
fn inv_txfm_add_rust: Redeclare c var as an immut slice when reused.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkysen committed May 7, 2024
1 parent fbba0a2 commit 8f7da91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/itx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ pub unsafe fn inv_txfm_add_rust<
);
}

c = &mut tmp[..];
let mut c = &tmp[..];
for _ in 0..H {
for x in 0..W {
*dst.add(x) = bd.iclip_pixel((*dst.add(x)).as_::<c_int>() + (c[0] + 8 >> 4));
c = &mut c[1..];
c = &c[1..];
}
dst = dst.offset(BD::pxstride(stride));
}
Expand Down

0 comments on commit 8f7da91

Please sign in to comment.