aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2022-12-25 05:15:56 +0000
committeryzrh <yzrh@noema.org>2022-12-25 05:15:56 +0000
commitd2826fa075544ada1fb9f530a375ef85f58c8ea0 (patch)
tree2de1f3891ba14e67b890667af0a4c132df3bcf12
parent288b65a1fd6bcb1908a31c0a3e18ce7b6bf53a89 (diff)
downloadmelon-d2826fa075544ada1fb9f530a375ef85f58c8ea0.tar.gz
melon-d2826fa075544ada1fb9f530a375ef85f58c8ea0.tar.zst
Simplify JBIG decoder.
Signed-off-by: yzrh <yzrh@noema.org>
-rw-r--r--src/jbig.c2
1 files changed, 1 insertions, 1 deletions
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);