X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b47c832e5529dc6c632536b4665a005f0a85aec8..bafd830636e54f3bf33910993a61e2972e99e2ca:/src/tiff/tif_fax3.h?ds=sidebyside diff --git a/src/tiff/tif_fax3.h b/src/tiff/tif_fax3.h index a9f1fcb23b..e64b145deb 100644 --- a/src/tiff/tif_fax3.h +++ b/src/tiff/tif_fax3.h @@ -360,6 +360,8 @@ static const char* StateNames[] = { doneBlack1d: \ if (a0 >= lastx) \ goto done1d; \ + if( *(pa-1) == 0 && *(pa-2) == 0 ) \ + pa -= 2; \ } \ eof1d: \ prematureEOF(a0); \ @@ -485,9 +487,10 @@ done1d: \ goto eol2d; \ case S_EOL: \ *pa++ = lastx - a0; \ - NeedBits8(5,eof2d); \ - if (GetBits(5)) \ + NeedBits8(4,eof2d); \ + if (GetBits(4)) \ unexpected("EOL", a0); \ + ClrBits(4); \ EOLcnt = 1; \ goto eol2d; \ default: \