- simplfy the logic in ReadExifTag

This commit is contained in:
Alfred Reynolds
2021-09-04 08:12:05 +12:00
parent 2e96ea4814
commit f8a8c3fab9

View File

@@ -34,12 +34,10 @@ int ReadExifTag(ExifData* exifData, ExifTag tag, bool shortRead = false)
{
if (shortRead)
{
value = exif_get_short(exifEntry->data, byteOrder);
}
else
{
value = exif_get_long(exifEntry->data, byteOrder);
return exif_get_short(exifEntry->data, byteOrder);
}
return exif_get_long(exifEntry->data, byteOrder);
}
return value;
}