AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2019.11.11 16:20 "[Tiff] OJpeg files in 4.1.0 no longer display in my viewer", by Laube, Warren
2019.11.11 17:28 "Re: [Tiff] OJpeg files in 4.1.0 no longer display in my viewer", by Even Rouault
2019.11.11 22:16 "Re: [Tiff] OJpeg files in 4.1.0 no longer display in my viewer", by Even Rouault
2019.11.12 12:55 "Re: [Tiff] OJpeg files in 4.1.0 no longer display in my viewer", by Laube, Warren
2019.11.12 14:10 "Re: [Tiff] OJpeg files in 4.1.0 no longer display in my viewer", by Bob Friesenhahn
2019.11.11 17:38 "Re: [Tiff] OJpeg files in 4.1.0 no longer display in my viewer", by Bob Friesenhahn

2019.11.11 16:20 "[Tiff] OJpeg files in 4.1.0 no longer display in my viewer", by Laube, Warren

I've just upgraded to libTiff 4.1.0 from 4.0.10 and have noticed a problem opening Tiff files with OJpeg compression. Files displaying correctly in 4.0.10 no longer work in 4.1.0 and I have traced the issue to new code added in 4.1.0 in tif_ojpeg.c around line 866 shown below. I now get this "Inconsistent number of MCU in codestream" error message and no image. Commenting out this error check code allows my images to be displayed again.

if (jpeg_bytes != expected_bytes)
       {
              TIFFErrorExt(tif->tif_clientdata,module,"Inconsistent number of MCU in codestream");
              sp->error_in_raw_data_decoding = 1;
              return(0);
       }

Are others seeing this issue and can this code be fixed to allow my images to work again?