Skip to content

Commit

Permalink
Update src/codecs/avif/yuv.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Molzer <[email protected]>
  • Loading branch information
awxkee and HeroicKatora authored Nov 26, 2024
1 parent 4cf8905 commit 45767ee
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 + 1) / 2;
let chroma_size = image.width.div_ceil(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 45767ee

Please sign in to comment.