Skip to content

Commit

Permalink
jpeg/mcu: Use > and not >=
Browse files Browse the repository at this point in the history
Signed-off-by: caleb <etemesicaleb@gmail.com>
  • Loading branch information
etemesi254 committed Jan 28, 2023
1 parent 998eda6 commit 48757e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zune-jpeg/src/mcu_prog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<'a> JpegDecoder<'a>

mcu_width *= 64;

if self.input_colorspace.num_components() >= self.components.len() {
if self.input_colorspace.num_components() > self.components.len() {
let msg = format!(" Expected {} number of components but found {}", self.input_colorspace.num_components(), self.components.len());
return Err(DecodeErrors::Format(msg));
}
Expand Down

0 comments on commit 48757e3

Please sign in to comment.