Skip to content

Commit 1882a43

Browse files
committed
Formatting
1 parent 49b8d47 commit 1882a43

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

MetadataExtractor/Formats/Exif/ExifTiffHandler.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ private bool ProcessMakernote(in TiffReaderContext context, int makernoteOffset)
615615
Directories.Add(directory);
616616
ProcessKodakMakernote(directory, makernoteOffset, context.Reader.WithByteOrder(isMotorolaByteOrder: headerBytes.StartsWith("KDK INFO"u8)));
617617
}
618-
else if (cameraMake is not null && cameraMake.Equals("CANON", StringComparison.OrdinalIgnoreCase))
618+
else if (cameraMake is not null && cameraMake.Equals("CANON", StringComparison.OrdinalIgnoreCase)) // Observed "Canon"
619619
{
620620
PushDirectory(new CanonMakernoteDirectory());
621621
TiffReader.ProcessIfd(this, context, ifdOffset: makernoteOffset);
@@ -633,8 +633,7 @@ private bool ProcessMakernote(in TiffReaderContext context, int makernoteOffset)
633633
TiffReader.ProcessIfd(this, context, ifdOffset: makernoteOffset);
634634
}
635635
}
636-
else if (headerBytes.StartsWith("FUJIFILM"u8) ||
637-
string.Equals("FUJIFILM", cameraMake, StringComparison.OrdinalIgnoreCase))
636+
else if (headerBytes.StartsWith("FUJIFILM"u8) || string.Equals("FUJIFILM", cameraMake, StringComparison.OrdinalIgnoreCase))
638637
{
639638
// Note that this also applies to certain Leica cameras, such as the Digilux-4.3.
640639
// The 4 bytes after "FUJIFILM" in the makernote point to the start of the makernote

0 commit comments

Comments
 (0)