]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 763] Class 2.x received g4 files are corrupted by HylaFAX
authorDarren Nickerson <darren.nickerson@ifax.com>
Sat, 22 Apr 2006 02:56:14 +0000 (02:56 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Sat, 22 Apr 2006 02:56:14 +0000 (02:56 +0000)
2D-MMR faxes received in Class 2.x on some Multitech modems are out of spec,
causing problems with some decoders (such as the one in libtiff). Thanks to
Patrice Fournier and iFAX Solutions.

faxd/G3Decoder.c++

index f06854870cd753658cfe7e7b80400b867a76fec8..868d5e687556117dc8ce4cae27f09ac3b399c172 100644 (file)
@@ -216,7 +216,7 @@ G3Decoder::decodeRow(void* scanline, u_int lastx)
        pb = refruns;
        b1 = *pb++;
 #define        badlength(a0,lastx) do {                        \
-    if (isG4)                                          \
+    if (isG4 && RTCrow == -1)                          \
        RTCrow = rowref;                                \
     badPixelCount("2D", a0, lastx);                    \
     rowgood = false;                                   \