Skip to content

Commit

Permalink
Convert some assert to assert_eq.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfbiedert committed Dec 11, 2024
1 parent c1deb7a commit 01f92ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openh264/src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,14 +492,14 @@ impl DecodedYUV<'_> {
let lower_bound = wide::f32x8::splat(0.0);

const STEP: usize = 8;
assert!(y_row.len() % STEP == 0);
assert_eq!(y_row.len() % STEP, 0);

const UV_STEP: usize = STEP / 2;
assert!(u_row.len() % UV_STEP == 0);
assert!(v_row.len() % UV_STEP == 0);
assert_eq!(u_row.len() % UV_STEP, 0);
assert_eq!(v_row.len() % UV_STEP, 0);

const TGT_STEP: usize = STEP * 3;
assert!(target.len() % TGT_STEP == 0);
assert_eq!(target.len() % TGT_STEP, 0);

let mut base_y = 0;
let mut base_uv = 0;
Expand Down

0 comments on commit 01f92ca

Please sign in to comment.