Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnurou committed Jun 11, 2024
1 parent eb2d8bd commit 4b2699a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/decoder/stateless/h264.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ where
if !matches!(last_pic.field, Field::Frame) && last_pic.other_field().is_none() {
if let Some(handle) = &last_dpb_entry.handle {
// Still waiting for the second field
prev_field = Some((&last_dpb_entry.pic, &handle));
prev_field = Some((&last_dpb_entry.pic, handle));
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ pub(crate) mod tests {
let u_pos = offsets[1] + (row / 2) * strides[1] + 2 * col;
let v_pos = u_pos + 2;

raw[u_pos + 0] = ((u << 6) & 0xa0) as u8;
raw[u_pos] = ((u << 6) & 0xa0) as u8;
raw[u_pos + 1] = (u >> 2) as u8;
raw[v_pos + 0] = ((v << 6) & 0xa0) as u8;
raw[v_pos] = ((v << 6) & 0xa0) as u8;
raw[v_pos + 1] = (v >> 2) as u8;
}
});
Expand Down

0 comments on commit 4b2699a

Please sign in to comment.