LibGfx/CCITT: Always accept the end of line as the next changing element

This commit is contained in:
Lucas CHOLLET 2024-03-06 02:17:18 -05:00 committed by Tim Flynn
parent 780e230af5
commit cefb2d65d8
Notes: sideshowbarker 2024-07-17 01:55:29 +09:00

View file

@ -436,7 +436,7 @@ ErrorOr<ReferenceLine> decode_single_ccitt_2d_line(BigEndianInputBitStream& inpu
reference_line.take_first();
continue;
}
if (change.color != current_color)
if (change.color != current_color || change.column == image_width)
next_change = change;
else
offset++;