summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-12-08 09:38:21 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2018-12-08 09:38:21 +0100
commitef8c70e2efd522693d2e369af569f80aba9211b7 (patch)
tree92b54434a971dde7d2228e119deea323a7c85b44
parentba9bd03a052dae4020136742362b5128e0dfdc33 (diff)
PhotoRec: Recover Little Endian NEF as .nefHEADmaster
fixes https://github.com/cgsecurity/testdisk/issues/55
-rw-r--r--src/file_tiff_le.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_tiff_le.c b/src/file_tiff_le.c
index 71ada70..2a4aa92 100644
--- a/src/file_tiff_le.c
+++ b/src/file_tiff_le.c
@@ -526,6 +526,8 @@ int header_check_tiff_le_new(const unsigned char *buffer, const unsigned int buf
file_recovery_new->extension="sr2";
else if(strncmp(tag_make, "SONY ",5)==0)
file_recovery_new->extension="arw";
+ else if(memcmp(tag_make, "NIKON CORPORATION", 18)==0)
+ file_recovery_new->extension="nef";
}
}
file_recovery_new->time=get_date_from_tiff_header(header, buffer_size);