summaryrefslogtreecommitdiffstats
path: root/src/file_jpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-03-23 14:51:44 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-03-23 14:51:44 +0100
commit455442f301f0b113f35620786db20b3f5fe9d227 (patch)
treecfb85e969ae13968693a8f8a66f7257b625be0a1 /src/file_jpg.c
parentde38e65c81317de733b7b893eafa2869e4c97ffb (diff)
PhotoRec: disable jpg detection during .albm file recovery
Diffstat (limited to 'src/file_jpg.c')
-rw-r--r--src/file_jpg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_jpg.c b/src/file_jpg.c
index e220eee..f7190a5 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -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 */