Skip to content

Commit

Permalink
jpeg/mcu: Correctly increment pixels written when decoding to graysca…
Browse files Browse the repository at this point in the history
…le and dealing with interleaved images

Signed-off-by: caleb <[email protected]>
  • Loading branch information
etemesi254 committed Jun 18, 2023
1 parent d635db2 commit a59c675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zune-jpeg/src/mcu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ impl<T: ZReaderTrait> JpegDecoder<T>
)?;

// increment pointer to number of pixels written
*pixels_written += width * out_colorspace_components * 8;
*pixels_written += width * out_colorspace_components * 8 * self.h_max;
}

Ok(())
Expand Down

0 comments on commit a59c675

Please sign in to comment.