Skip to content

Commit

Permalink
Remove unnecessary unsafe blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
randomPoison committed Jul 8, 2024
1 parent 95ddb07 commit 8f1e51a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/recon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3709,14 +3709,12 @@ pub(crate) fn rav1d_filter_sbrow_cdef<BD: BitDepth>(
let ss_ver = f.cur.p.layout == Rav1dPixelLayout::I420 && i != 0;
p[i] - ((8 * p[i].pixel_stride::<BD>()) >> ss_ver as u8)
});
// TODO make safe
unsafe { rav1d_cdef_brow::<BD>(c, tc, f, p_up, prev_mask, start - 2, start, true, sby) };
rav1d_cdef_brow::<BD>(c, tc, f, p_up, prev_mask, start - 2, start, true, sby);
}

let n_blks = sbsz - 2 * ((sby + 1) < f.sbh) as c_int;
let end = cmp::min(start + n_blks, f.bh);
// TODO make safe
unsafe { rav1d_cdef_brow::<BD>(c, tc, f, p, mask_offset, start, end, false, sby) };
rav1d_cdef_brow::<BD>(c, tc, f, p, mask_offset, start, end, false, sby);
}

pub(crate) fn rav1d_filter_sbrow_resize<BD: BitDepth>(
Expand Down

0 comments on commit 8f1e51a

Please sign in to comment.