From dcd998ca2a96ca7ae8a01e5d52214a35d0f7460e Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 10 Apr 2016 19:16:38 +0200 Subject: [PATCH] PhotoRec: don't truncate recovered .sr2 files as they may be larger than detected --- src/file_tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_tiff.c b/src/file_tiff.c index 82fae9de..cb100153 100644 --- a/src/file_tiff.c +++ b/src/file_tiff.c @@ -1165,13 +1165,13 @@ void file_check_tiff(file_recovery_t *fr) * Sony arw and dng, * Panasonic raw/rw2, * Minolta tif + * Sony sr2 * so don't truncate them */ else if(strcmp(fr->extension,"cr2")==0 || strcmp(fr->extension,"dcr")==0 || strcmp(fr->extension,"nef")==0 || strcmp(fr->extension,"orf")==0 || strcmp(fr->extension,"pef")==0 || - strcmp(fr->extension,"sr2")==0 || (strcmp(fr->extension,"tif")==0 && calculated_file_size>1024*1024*1024) || strcmp(fr->extension,"wdp")==0) fr->file_size=calculated_file_size;