- simplfy the logic in ReadExifTag
This commit is contained in:
1 parent
2e96ea4814
commit
f8a8c3fab9
1 file changed
+3
-5
@@ -34,12 +34,10 @@ int ReadExifTag(ExifData* exifData, ExifTag tag, bool shortRead = false)
|
|||||||
{
|
{
|
||||||
if (shortRead)
|
if (shortRead)
|
||||||
{
|
{
|
||||||
value = exif_get_short(exifEntry->data, byteOrder);
|
return exif_get_short(exifEntry->data, byteOrder);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
value = exif_get_long(exifEntry->data, byteOrder);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return exif_get_long(exifEntry->data, byteOrder);
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user