PhotoRec: disable jpg detection during .albm file recovery
This commit is contained in:
parent
de38e65c81
commit
455442f301
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,7 @@
|
|||
#include "file_tiff.h"
|
||||
#include "setdate.h"
|
||||
|
||||
extern const file_hint_t file_hint_doc;
|
||||
extern const file_hint_t file_hint_indd;
|
||||
extern const file_hint_t file_hint_mov;
|
||||
extern const file_hint_t file_hint_riff;
|
||||
|
@ -260,6 +261,9 @@ static int header_check_jpg(const unsigned char *buffer, const unsigned int buff
|
|||
jpg_get_size(buffer, buffer_size, &height, &width);
|
||||
if(file_recovery->file_stat->file_hint==&file_hint_indd)
|
||||
return 0;
|
||||
if(file_recovery->file_stat->file_hint==&file_hint_doc &&
|
||||
strstr(file_recovery->filename, ".albm")!=NULL)
|
||||
return 0;
|
||||
if( file_recovery->file_stat->file_hint==&file_hint_jpg)
|
||||
{
|
||||
/* Don't recover the thumb instead of the jpg itself */
|
||||
|
|
Loading…
Reference in a new issue