Skip to content

Commit 635aae2

Browse files
authored
Merge pull request #356 from Gorbush/FlashAutoDescription
Fix of the Flash description for Flash == OFF
2 parents 84a65f5 + 0548deb commit 635aae2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Source/com/drew/metadata/exif/ExifDescriptorBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,8 @@ public String getFlashDescription()
844844
sb.append(", return not detected");
845845
}
846846

847-
if ((value & 0x10) != 0)
847+
// If 0x10 is set and the lowest byte is not zero - then flash is Auto
848+
if ((value & 0x10) != 0 && (value & 0x0F) != 0)
848849
sb.append(", auto");
849850

850851
if ((value & 0x40) != 0)

0 commit comments

Comments
 (0)