|
|
61cfe0 |
diff --git a/libjbig/jbig.c b/libjbig/jbig.c
|
|
|
61cfe0 |
index 751ceff..3c76e07 100644
|
|
|
61cfe0 |
--- a/libjbig/jbig.c
|
|
|
61cfe0 |
+++ b/libjbig/jbig.c
|
|
|
61cfe0 |
@@ -889,7 +889,7 @@ void jbg_enc_options(struct jbg_enc_state *s, int order, int options,
|
|
|
61cfe0 |
if (order >= 0 && order <= 0x0f) s->order = order;
|
|
|
61cfe0 |
if (options >= 0) s->options = options;
|
|
|
61cfe0 |
if (l0 > 0) s->l0 = l0;
|
|
|
61cfe0 |
- if (mx >= 0 && my < 128) s->mx = mx;
|
|
|
61cfe0 |
+ if (mx >= 0 && mx < 128) s->mx = mx;
|
|
|
61cfe0 |
if (my >= 0 && my < 256) s->my = my;
|
|
|
61cfe0 |
|
|
|
61cfe0 |
return;
|
|
|
61cfe0 |
diff --git a/pbmtools/Makefile b/pbmtools/Makefile
|
|
|
61cfe0 |
index 85e1783..6ae2d33 100644
|
|
|
61cfe0 |
--- a/pbmtools/Makefile
|
|
|
61cfe0 |
+++ b/pbmtools/Makefile
|
|
|
61cfe0 |
@@ -56,9 +56,9 @@ test82: pbmtojbg jbgtopbm
|
|
|
61cfe0 |
make IMG=sandra "OPTIONSP=-o 2" OPTIONSJ= dotest2g
|
|
|
61cfe0 |
make IMG=multi OPTIONSP= OPTIONSJ= dotest2g
|
|
|
61cfe0 |
make IMG=multi OPTIONSP=-b OPTIONSJ=-b dotest2g
|
|
|
61cfe0 |
- make IMG=mx "OPTIONSP=-q -s 3 -m 128" dotest1
|
|
|
61cfe0 |
- make IMG=mx "OPTIONSP=-q -s 3 -m 128" dotest2b
|
|
|
61cfe0 |
- make IMG=mx "OPTIONSP=-q -s 3 -m 128 -p 92" dotest2b
|
|
|
61cfe0 |
+ make IMG=mx "OPTIONSP=-q -s 3 -m 127" dotest1
|
|
|
61cfe0 |
+ make IMG=mx "OPTIONSP=-q -s 3 -m 127" dotest2b
|
|
|
61cfe0 |
+ make IMG=mx "OPTIONSP=-q -s 3 -m 127 -p 92" dotest2b
|
|
|
61cfe0 |
make IMG=mx "OPTIONSP=-q -Y -1" dotest2b
|
|
|
61cfe0 |
make IMG=mx "OPTIONSP=-Y -1" dotest2b
|
|
|
61cfe0 |
rm -f test-*.jbg test-*.pbm test-*.pgm
|