Skip to content

Commit

Permalink
MSRV fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Dec 9, 2024
1 parent 71e6d74 commit e7dcfb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codecs/avif/yuv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ fn process_halved_chroma_row<
// preventing accidental use of invalid values from the trailing region.

let y_plane = &image.y_plane[0..image.width];
let chroma_size = image.width.div_ceil(2);
let chroma_size = (image.width + 1) / 2;
let u_plane = &image.u_plane[0..chroma_size];
let v_plane = &image.v_plane[0..chroma_size];
let rgba = &mut rgba[0..image.width * CHANNELS];
Expand Down

0 comments on commit e7dcfb4

Please sign in to comment.