Merge pull request #1919 from dimin/viqi

fix for reading jpeg-xr images
This commit is contained in:
Luis Díaz Más 2022-02-28 09:42:43 +01:00 committed by GitHub
commit a5b6db171c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2231,7 +2231,8 @@ namespace Exiv2 {
else {
return false;
}
if (tag_ != getUShort(pData + 2, byteOrder_)) return false;
uint16_t t = getUShort(pData + 2, byteOrder_);
if (t != 444 && tag_ != t) return false; // 444 is for the JPEG-XR
offset_ = getULong(pData + 4, byteOrder_);
return true;