LibGfx/CCITT: Don't use change's color to set current_color

No behavior change, `to_encode` always receive a `Change` with a
different color.
This commit is contained in:
Lucas CHOLLET 2024-03-06 02:13:25 -05:00 committed by Tim Flynn
parent 9a18566850
commit 780e230af5
Notes: sideshowbarker 2024-07-17 03:14:39 +09:00

View File

@ -450,7 +450,7 @@ ErrorOr<ReferenceLine> decode_single_ccitt_2d_line(BigEndianInputBitStream& inpu
TRY(decoded_bits.write_bits(current_color == ccitt_white ? 0u : 1u, 1));
column = change.column + offset;
current_color = change.color;
current_color = invert(current_color);
remainder_from_pass_mode = 0;
TRY(current_line.try_empend(current_color, column));