OJPEGReadHeaderInfo: if rowsperstrip not defined, then assume one-single-strip. Complementary fix to 0356ea76ba

This commit is contained in:
Even Rouault 2020-01-07 23:13:11 +01:00
parent 4f6db6a129
commit 0a8245b7b8
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -1064,6 +1064,8 @@ OJPEGReadHeaderInfo(TIFF* tif)
{
sp->strile_width=sp->image_width;
sp->strile_length=tif->tif_dir.td_rowsperstrip;
if( sp->strile_length == (uint32)-1 )
sp->strile_length = sp->image_length;
sp->strile_length_total=sp->image_length;
}
if (tif->tif_dir.td_samplesperpixel==1)