Skip to content

Commit

Permalink
Fix GBR decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Oct 29, 2024
1 parent 52facf8 commit 8bdf5a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/codecs/avif/yuv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,11 +1003,11 @@ where
for (((y_src, u_src), v_src), rgb) in y_iter.zip(u_iter).zip(v_iter).zip(rgb_iter) {
let rgb_chunks = rgb.chunks_exact_mut(CHANNELS);

for (((y_src, u_src), v_src), rgb_dst) in y_src.iter().zip(u_src).zip(v_src).zip(rgb_chunks)
for (((&y_src, &u_src), &v_src), rgb_dst) in y_src.iter().zip(u_src).zip(v_src).zip(rgb_chunks)
{
rgb_dst[0] = v_src.as_();
rgb_dst[1] = y_src.as_();
rgb_dst[2] = u_src.as_();
rgb_dst[0] = v_src;
rgb_dst[1] = y_src;
rgb_dst[2] = u_src;
rgb_dst[3] = max_value.as_();
}
}
Expand Down

0 comments on commit 8bdf5a8

Please sign in to comment.