From d2826fa075544ada1fb9f530a375ef85f58c8ea0 Mon Sep 17 00:00:00 2001 From: yzrh Date: Sun, 25 Dec 2022 05:15:56 +0000 Subject: Simplify JBIG decoder. Signed-off-by: yzrh --- src/jbig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jbig.c b/src/jbig.c index 09a3d92..fce8e02 100644 --- a/src/jbig.c +++ b/src/jbig.c @@ -207,7 +207,7 @@ static void _procline(int line, char *a, char *b, char *c) { /* The encoder must be erroneous */ - uint16_t cx = (*b & 0x01) << 2; + uint16_t cx = 0; for (int i = 0; i < _width; i++) { _decode(cx); -- cgit v1.2.3