PhotoRec: recover more Pentax .tif as .pef, add missing header
This commit is contained in:
parent
5e2ed32a43
commit
cd7e6da787
@ -29,6 +29,9 @@
|
|||||||
#ifdef HAVE_TIME_H
|
#ifdef HAVE_TIME_H
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_STDLIB_H
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "filegen.h"
|
#include "filegen.h"
|
||||||
@ -185,7 +188,8 @@ static int header_check_tiff(const unsigned char *buffer, const unsigned int buf
|
|||||||
tag_make=find_tag_from_tiff_header((const TIFFHeader *)buffer, buffer_size, TIFFTAG_MAKE);
|
tag_make=find_tag_from_tiff_header((const TIFFHeader *)buffer, buffer_size, TIFFTAG_MAKE);
|
||||||
if(tag_make!=NULL)
|
if(tag_make!=NULL)
|
||||||
{
|
{
|
||||||
if(strcmp(tag_make, "PENTAX Corporation ")==0)
|
if(strcmp(tag_make, "PENTAX Corporation ")==0 ||
|
||||||
|
strcmp(tag_make, "PENTAX ")==0)
|
||||||
file_recovery_new->extension="pef";
|
file_recovery_new->extension="pef";
|
||||||
else if(strcmp(tag_make, "NIKON CORPORATION")==0)
|
else if(strcmp(tag_make, "NIKON CORPORATION")==0)
|
||||||
file_recovery_new->extension="nef";
|
file_recovery_new->extension="nef";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user