PhotoRec: don't truncate recovered .sr2 files as they may be larger than detected
This commit is contained in:
parent
6d1032e193
commit
dcd998ca2a
1 changed files with 1 additions and 1 deletions
|
@ -1165,13 +1165,13 @@ void file_check_tiff(file_recovery_t *fr)
|
||||||
* Sony arw and dng,
|
* Sony arw and dng,
|
||||||
* Panasonic raw/rw2,
|
* Panasonic raw/rw2,
|
||||||
* Minolta tif
|
* Minolta tif
|
||||||
|
* Sony sr2
|
||||||
* so don't truncate them */
|
* so don't truncate them */
|
||||||
else if(strcmp(fr->extension,"cr2")==0 ||
|
else if(strcmp(fr->extension,"cr2")==0 ||
|
||||||
strcmp(fr->extension,"dcr")==0 ||
|
strcmp(fr->extension,"dcr")==0 ||
|
||||||
strcmp(fr->extension,"nef")==0 ||
|
strcmp(fr->extension,"nef")==0 ||
|
||||||
strcmp(fr->extension,"orf")==0 ||
|
strcmp(fr->extension,"orf")==0 ||
|
||||||
strcmp(fr->extension,"pef")==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,"tif")==0 && calculated_file_size>1024*1024*1024) ||
|
||||||
strcmp(fr->extension,"wdp")==0)
|
strcmp(fr->extension,"wdp")==0)
|
||||||
fr->file_size=calculated_file_size;
|
fr->file_size=calculated_file_size;
|
||||||
|
|
Loading…
Reference in a new issue