1998.02.28 00:31 "Re: fax3 bug?", by Sam Leffler
I have been working with the the libtiff libary (v3.4) and noticed that the tif_fax3.c decode stuff (Fax3Decode1D, Fax3Decode2D, Fax3DecodeRLE, and Fax4decode) return -1 or 1.
The fax2tiff tool does the call like this:
ok = (*tifin->tif-decoderow)(blah).
Then the return code is check like this:
if (!ok) {
blah
}If you return -1 or 1, I don't think that ok will ever be false. :) All of the other compression routines return 0 or 1. So I don't think this is right.
If I am wrong, please let me know.
You are correct; I'll fix fax2tiff.
Sam